error.code. For example, after 429 rate_limit_exceeded, wait for the stated delay. After 429 quota_exceeded, wait until the quota resets.
What an error looks like
In this example, the per-minute limit resets in 12 seconds.
Log any unrecognized error code and fall back to handling the HTTP status. For a response from a proxy, use the HTTP status and headers. For a network timeout, follow the retry rules below.
What to fix in a request
Read the reason for a refusal
For card verification,
verification_protection carries the reason in error.details.reason. The HTTP status depends on that reason.
A successful order preflight can still report field problems in
result.preflight.validation_issues. A successful order read can return a pending or unsuccessful payment state. Check the order and payment status before starting another payment.
When to retry after 429
The API first applies a per-minute outbound IP limit. A separate token limit applies after authentication for private requests. The default base limit is 120 requests per minute. Integrations that share an IP can share the network limit. Use the values returned by your installation.
Daily and monthly quotas are tracked separately for the current key. On
quota_exceeded, read error.details.period and schedule the next attempt after error.details.resets_at or X-Api-Quota-Reset. Read GET /private/usage with the public-api:usage:read scope to check current usage and remaining quota. This read also consumes quota. Once the key reaches its quota, the read itself can return 429 quota_exceeded. Use the reset time from that response. If both quotas are exhausted, the API reports the daily period first. The monthly quota can still block the next request after the daily reset.
What to do after 503, 5xx, or a timeout
503 site_maintenance. The API temporarily rejects write requests. UseGETto read the current state while the API is available. Retry commands afterRetry-After.503 api_disabled. Ask the operator whether the API is enabled on this installation.- Another
5xxor network timeout. Retry reads with increasing delay. For a command, first check whether it produced a result. To retry an idempotent command, retain the original key and input, then sign the request again.
What to include when reporting a problem
Record the method, path, time, HTTP status, anderror.code. Include X-Request-Id for one attempt and X-Correlation-Id for a sequence of related requests. Both IDs are also in meta. Remove tokens, signatures, secrets, and personal data before sharing the report with the exchange operator.
Diagnose the API response with an assistant
Diagnose the API response with an assistant