Skip to main content

The error object

All error responses share the same structure:
string
required
Always error on a failed request. The HTTP status code is on the response itself.
string
required
A human-readable description of what went wrong and what to do next. Safe to surface to your users.
string
required
A machine-readable error code. Use this to handle specific error cases programmatically. Follows the format error_{domain}_{specific_condition}.
array
Present only on validation errors (error_validation_error). Contains field-level details when multiple fields fail.

Example: a failed request

Retrieving a transfer that does not exist returns 404 with the error object:

Validation error example

When a request fails validation on multiple fields, the validations array provides field-level detail:

HTTP status codes


Handling errors

Check the type field to handle specific error cases in your integration. Use the message field to surface a reason to your users.
Every error response includes an X-Request-ID header. Include this in any support request: it lets the Nuvion team trace the exact request in our systems.

Error reference

Error types follow the format error_{domain}_{specific_condition}. The domain indicates which part of the API the error originates from.

Authentication and authorization

Validation

A request that fails field validation returns 422 with the top-level type error_validation_error. The field-level types below appear inside the validations array of that response.

Entities

KYC

KYB

Accounts

FX quotes

Funding sessions

Transfers

Counterparties

These checks run when you add payment details. The API returns them as the type of the failing field inside validations, under a 422 error_validation_error. For example, an invalid IBAN returns error_counterparty_iban_invalid for the iban field.

Stablecoin wallets

Account details resolution

Card issuing

Card acquiring

Webhooks

Resources & system