# `Tipalti.APIError`
[🔗](https://github.com/iamkanishka/tipalti/blob/main/lib/tipalti/error.ex#L53)

Raised when the API responds with a well-formed error payload.

Fields:

  * `:status` — HTTP status code (`nil` for SOAP faults, see
    `Tipalti.SOAPFaultError` instead).
  * `:body` — the raw decoded response body, for callers that need
    details this struct doesn't surface.
  * `:code` — provider-specific error/business code, when present.

---

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