Errors

Error format

Errors return a JSON body with type, code and message fields. The code is stable and safe to match on, such as card_declined or invalid_api_key.

Common error codes

card_declined means the bank refused the charge. invalid_api_key means the key is wrong or revoked. idempotency_conflict means a reused idempotency key with different parameters.