# `ExFattureincloud.Response`
[🔗](https://github.com/elchemista/ex_fattureincloud/blob/v0.1.0/lib/ex_fattureincloud/response.ex#L1)

A successful HTTP response. `body` preserves the complete API envelope;
`data` is its `"data"` field, or the raw body for XML/plain text responses.
`pagination` contains the pagination fields returned by the server.

# `result`

```elixir
@type result() :: {:ok, t()} | {:error, ExFattureincloud.Error.t()}
```

The result returned by a resource function or HTTP request.

# `t`

```elixir
@type t() :: %ExFattureincloud.Response{
  body: term(),
  data: term(),
  headers: map(),
  pagination: map(),
  rate_limit: ExFattureincloud.RateLimit.t(),
  status: integer()
}
```

The HTTP response and data extracted from its body and headers.

# `from_req`

```elixir
@spec from_req(Req.Response.t()) :: t()
```

Converts a successful Req response, preserving its envelope, pagination and quota headers.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
