Skip to main content
Errors return JSON with an error object.
Payment errors can include additional decline fields.

Status code map

Client behavior

  • Retry network failures and retryable 5xx operations with the same idempotency key only when the operation-specific documentation says that a retry is safe.
  • Do not retry validation errors without changing the request.
  • Do not retry payment declines blindly.
  • Include X-Request-ID when contacting support.
Terminal payment timeouts, GATEWAY_UNCERTAIN, and disconnected client sockets are not proof that a Sale failed. Do not create another Sale. Inspect the PaymentIntent and any known Terminal Payment, retain the original idempotency key, and follow the terminal-specific recovery guidance.