Skip to main content

Error Codes

API requests that result in errors will be responded to with one of the following HTTP status codes, as applicable:

  • 400 Bad Request: The request is malformed or missing a required parameter.
  • 401 Unauthorized: Invalid credentials or incorrect security signature.
  • 403 Forbidden: Access to the requested resource is denied.
  • 404 Not Found: The requested resource does not exist.
  • 409 Conflict: Attempt to create a different resource using an already used idempotency key.
  • 422 Unprocessable Entity: When an amount exceeds configured limits.
  • 429 Too Many Requests: Request limit exceeded.
  • 451 Fraud Control: A suspicious usage pattern was detected.
  • 500 Internal Server Error: Unexpected error on our servers.

When this occurs, the response will include a JSON object like the following example:

{
"error": "2001",
"title": "INVALID_PAYMENT_NETWORK",
"message": "The required network is invalid.",
"timestamp": "2024-04-16T17:44:51Z"
}

In some cases, if necessary, an error message may include a list of details, as in the following example:

{
"error": "0004",
"title": "INVALID_REQUEST",
"message": "The received request contains invalid data.",
"timestamp": "2024-04-16T17:44:51Z",
"details": [
{
"field": "network",
"message": "The received field exceeds the maximum allowed length."
}
]
}

In addition to the HTTP status code in the response, each error is categorized with a numeric code and a name for clarity and easier debugging. The error code table is shown below:

Error Codes

General

CodeNameDescription
0000INTERNAL_ERRORAn internal platform error has occurred. For more details, please contact support.
0001ELEMENT_NOT_FOUNDThe requested element was not found.
0002RATE_LIMIT_EXCEEDEDThe request limit has been exceeded.
0003OPERATION_NOT_ALLOWEDThe requested action is not permitted.
0004INVALID_REQUESTThe request contains invalid data. For details, check the error message.
0005IDEMPOTENCY_CONFLICTAn attempt was made to create a resource using an idempotency key already used for a different request.
1001AUTHENTICATION_REQUIREDValid access credentials are required to perform the requested action.
1002INVALID_CREDENTIALSThe authentication credentials provided are invalid.
1003INACTIVE_ACCOUNTYour account has not yet been activated. Contact support for more information.
1004SUSPENDED_ACCOUNTYour account has been suspended. Contact support for more information.
1005INSUFFICIENT_PERMISSIONSYour account or credentials do not have the required permissions to perform the requested action.
2001INVALID_PAYMENT_NETWORKThe selected blockchain network is not valid.
2002INVALID_PAYMENT_TOKENThe token selected for the payment is not valid.
2003WALLET_NOT_FOUNDThere is no active wallet for the selected network or token.
2004INVALID_FILTEROne of the filters in the request is not valid, such as future dates or impossible date ranges.
2005NETWORK_FAILUREExternal error related to a blockchain network failure.
2006UNPROCESSABLE_ENTITYWhen an amount exceeds configured limits.
2007SUSPICIOUS_USAGE_PATTERNA suspicious usage pattern was detected when executing an action.