Skip to Content

Errors

Error format, codes, and how to handle them.

Errors use standard HTTP status codes and a JSON body:

{ "code": "SLUG_NOT_FOUND", "message": "SLUG_NOT_FOUND" }

Branch on code, not on the status or message. message repeats the code and is not meant for customers.

Every response carries an X-Request-Id header. Include it when you contact us about a request.

Codes

StatusCodeWhat to do
400INVALID_INPUTFix the request: invalid JSON, a missing or invalid field or header, or an unknown field.
400BODY_TOO_LARGEThe body is larger than 8 KiB.
401UNAUTHORIZEDCheck the API key. See Authentication.
404ORDER_NOT_FOUNDNo order with this ID belongs to you.
409IDEMPOTENCY_CONFLICTThe idempotency key was used for a different order. See Idempotency.
409ORDER_IN_PROGRESSThe first request with this key is still running. Retry after Retry-After seconds.
409MERCHANT_DISABLEDYour account or this pay link is disabled. Contact us.
422SLUG_NOT_FOUNDslug is not one of your pay links.
429RATE_LIMITEDSlow down and retry with backoff. See Rate limits.
500INTERNAL_ERRORRetry with the same idempotency key. Contact us if it persists.
503PAYMENTS_PAUSEDPayments are paused for now. Retry later.
503QUOTE_UNAVAILABLEThe exchange rate is unavailable. Retry later.
503WALLET_UNAVAILABLEThe invoice could not be created. Retry with the same idempotency key.
503PAYMENTS_UNAVAILABLETemporary failure. Retry with the same idempotency key.

503 PAYMENTS_NOT_CONFIGURED and 503 WALLET_NOT_CONFIGURED mean the service is misconfigured on our side. Retry later and contact us if it persists.

When order creation fails, no order is saved. You can safely retry with the same idempotency key, or show the customer an error and let them try again.

On this page