Errors

The API uses standard HTTP status codes to indicate the success or failure of an API request. In general: Codes in the 2xx range indicate success. Codes in the 4xx range indicate an error with the parameters provided (like a missing parameter or a card decline). Codes in the 5xx range indicate an error in our infrastructure.

Invalid request (4xx) errors that can be handled programmatically include an enum code that allows you to respond to the error.

The Error object

An invalid request error indicates that the parameters, format, or nature of the request are invalid. Examples include missing required parameters or incorrect parameter types. Actions that conflict with the current state of a resource may also result in an invalid request error.

Name
object
Type
"error",
Name
error
Type
empty object,
Child properties
Name
type
Type
"invalid_request_error",
Name
live
Type
boolean or null,
Name
code
Type
enum or null,
Name
message
Type
string,
Name
param
Type
string or null,
Name
issues
Type
array or null,

or