Errors include a machine-readable error code, a human-readable message, and when available a request ID and field details. Log the request ID and your own operation ID, never the API key, client token, webhook secret, or payment-field data. Redact response bodies before sending them to error tracking.

Retry policy

  • Retry network failures and temporary server failures with bounded exponential backoff.
  • Reuse the same Idempotency-Key for a retried create request.
  • Do not retry validation or authentication errors without changing the request or credentials.
  • Treat an accepted request with an unknown response as pending until you reconcile it by ID.

Common categories

Payment-specific outcomes

An accepted checkout or payment request may remain pending while a customer completes a redirect, wallet approval, or bank authorization. An invalid method or expired session requires a new customer action; an unknown network result requires retrieval by ID. Do not classify an ambiguous result as failed and charge again.