OptionalcodeA stable name for the refusal, such as SUBACCOUNT_NOT_FOUND. Present on some refusals only.
OptionalerrorThe name of the HTTP status, such as Not Found. Present on some refusals only.
OptionalerrorsThe validation problems, on a 400 for a request that did not pass validation. Each item has a path, the place of the field in the request; its other fields come from the validation library and can change.
What went wrong, in words. Some messages carry ids or states, so do not parse it.
OptionalreasonWhy the refusal happened, on the refusals that name one. For example, BANK_ENROLLMENT_DISABLED carries network-not-allowed when the account's setting does not allow a bank link for that card network.
The HTTP status code of the answer, repeated in the body.
The error body of the Banking API: plain JSON with
statusCodeandmessage. The card APIs use a different body (titleanddetail). Branch oncodewhere a refusal carries one;messageis text for people.One exception: a
401for a missing or invalid token comes from the gateway, before the request reaches the Banking API, and carriestitleanddetaillike the card APIs.Export
BankingError