Skip to main content
When a Global Acquiring API call fails, the gateway returns a non-2xx HTTP status with a JSON error body. Use this page to identify what went wrong and how to recover.

Error response formats

The Global Acquiring API uses two response envelopes. Which one you receive depends on which handler processed the request.
Almost every error the Global Acquiring API returns uses this envelope. The type field determines the HTTP status (see Error types).

Error types

Envelope A groups codes into types, each of which maps to a fixed HTTP status. Envelope B does not carry a type field; branch on whether code is numeric (Envelope B) or a string (Envelope A) to distinguish cases.

Common errors

These can appear on any authenticated endpoint.

Envelope A (typed errors)

Envelope B (legacy idempotency-pending)

Resource errors

Payment errors

Create a PaymentIntent · Retrieve a PaymentIntent · Update a PaymentIntent · Confirm a PaymentIntent · Capture a PaymentIntent · Cancel a PaymentIntent · List all PaymentIntents · Retrieve a PaymentAttempt · List all PaymentAttempts
Envelope A types: payment_error, invalid_request_error, product_error, not_found. Envelope A

Refund errors

Create a refund · Retrieve a refund · List all refunds
Envelope A types: refund_error, payment_error, invalid_request_error, api_error. Envelope A

Customer errors

Create a customer · Get a customer · Update a customer · List customers
type: customer_error Envelope A

Payout errors

Create Payout · Retrieve Payout · List all Payouts · Retrieve Balance · List Balances · Create Bank Account · Retrieve Bank Account · Update Bank Account · List all Bank Accounts
Envelope A types: payout_error, account_error, product_error, api_error. Envelope A