Errors

Status codes, error format and how to recover.

Format

{
  "statusCode": 400,
  "message": ["details.schema is required"],
  "error": "Bad Request"
}

Status codes

CodeMeaningWhat to do
400Missing or invalid field, or a business rule failedFix the request. message names the field
401Token missing, expired or invalid; or key revokedGet a new token
403Wrong key mode for the environment, or resource belongs to another MIDUse a TEST key in sandbox, LIVE in production
404Resource not found, or not yoursCheck the ID
409Same Idempotency-Key with a different body, or still processingRetry with the identical body, or use a new key
429Rate limit exceededBack off and retry
500Unexpected errorRetry with the same Idempotency-Key; contact support if it persists
503A banking partner or method is temporarily unavailableRetry later with the same Idempotency-Key

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.


Did this page help you?