Errors
Status codes, error format and how to recover.
Format
{
"statusCode": 400,
"message": ["details.schema is required"],
"error": "Bad Request"
}Status codes
| Code | Meaning | What to do |
|---|---|---|
400 | Missing or invalid field, or a business rule failed | Fix the request. message names the field |
401 | Token missing, expired or invalid; or key revoked | Get a new token |
403 | Wrong key mode for the environment, or resource belongs to another MID | Use a TEST key in sandbox, LIVE in production |
404 | Resource not found, or not yours | Check the ID |
409 | Same Idempotency-Key with a different body, or still processing | Retry with the identical body, or use a new key |
429 | Rate limit exceeded | Back off and retry |
500 | Unexpected error | Retry with the same Idempotency-Key; contact support if it persists |
503 | A banking partner or method is temporarily unavailable | Retry later with the same Idempotency-Key |
201 with status: "failed"
201 with status: "failed"Some valid requests can't be fulfilled, for example a currency not switched on or an amount outside limits. These return 201 with status: "failed" and a declineReason. Always check data.status after creating a payment.
Retrying safely
Retry 5xx and timeouts with the same Idempotency-Key and body. You'll never create a duplicate payment or payout.
Updated 16 days ago
Did this page help you?

