Skip to content

Error Codes

All API errors return an appropriate HTTP status code with a JSON body. The error envelope format depends on which adapter you’re using.

{
"statusCode": 400,
"code": "BAD_REQUEST",
"message": "price_amount must be a positive number"
}
{
"state": 1,
"message": "amount, currency, and order_id are required"
}
{
"data": null,
"message": "amount and currency are required",
"error": {
"type": "validation",
"key": "missing_field",
"message": "amount and currency are required"
},
"status": 400,
"version": "1.0.0"
}

These HTTP status codes are used consistently across all adapters:

CodeMeaningCommon Causes
400Bad RequestMissing or invalid parameters
401UnauthorizedMissing or invalid authentication
404Not FoundPayment or resource does not exist
429Too Many RequestsRate limit exceeded (100 req/min)
500Internal Server ErrorUnexpected server error
501Not ImplementedEndpoint exists in the original provider but is not yet supported