Skip to main content
Payra uses HTTP status codes to say whether a request succeeded. Any API response that is not 2xx has this body:
string
required
The category of error. One of the values in the table below.
string
required
A short, stable identifier for the specific error.
string
required
A human-readable explanation. It can change; do not match on it.
string
The request parameter the error relates to, when there is one.
string
required
The id of the request. Include it when you contact Payra support.
Every API response also carries a Request-Id header with the same id, except a replay, whose body keeps the original request’s id.

Error types

Handle errors by type and code, never by message.