If any request returns an error it will be in the following format:

FieldDescriptionFormat
errors.statusThe HTTP Status code of the errorstring
errrors.code(optional) The internal code of the error. Use this to communicate with Banxa Supportstring
errors.titleThe title of the errorstring
errors.description(optional) A more detailed description of the errorstring
{
  "errors": [
    {
      "status": "40103",
      "code": "401",
      "title": "You are not authorized to access this resource."
    }
  ]
}

The API uses the following HTTP Codes:

CodeMeaning
200Successful -- Your request was successful
400Bad Request -- Your request is invalid.
401Unauthorized -- Your API key is incorrect or the packet was malformed.
403Forbidden -- The request is not allowed.
404Not Found -- The resource could not be found.
405Method Not Allowed -- You tried to access an invalid method.
406Not Acceptable -- You requested a format that isn't json.
410Gone -- The requested resource has been removed from our servers.
422Invalid request -- Something in the payload was either missing or malformed
429Too Many Requests -- You have hit your allowance for calling the API
500Internal Server Error -- We had a problem with our server. Try again later.
503Service Unavailable -- We're temporarily offline for maintenance. Please try again later.

The API uses the following Error Statuses:

StatusMeaning
1Order not found
227Customer's account has temporarily been placed on hold
228Customer has reached their payment limit
305We are waiting for funds to arrive for a customer from a previous order
999System error
4002Validation error
4007The selected payment is not available
40001Hmac Error - Nonce must be a valid unix timestamp
40002Hmac Error - Nonce time is too different from our system. Please regenerate nonce using current UTC
40003Hmac Error - Nonce has been used before. Please regenerate the nonce and try again
40100Hmac Error - Merchant not found
40101Hmac Error - Auth digest is malformed
40102Hmac Error - Authentication header is missing
40103Hmac Error - Payload signature can not be authenticated
40104Hmac Error - Invalid API key