Idempotency-Key with every new POST. Use 1 to 255 printable ASCII characters with no spaces. A missing header returns 400 idempotency_key_required, and a malformed value returns 400 idempotency_key_invalid.
Reuse a key only to retry the same request. Keys belong to the business across all its API keys and both modes. For 24 hours, the same key and request replay the stored response with Idempotent-Replayed: true. A different request with the same key returns 422 idempotency_key_reused. The same request in the other mode counts as a different request. While the original request is in flight, a retry returns 409 idempotency_key_in_progress with Retry-After: 1.
Once an order or conversion has been created, its idempotency key stays bound to the original mode. A cross-mode retry still returns 422 idempotency_key_reused after the 24-hour replay window. After that window, repeating the same create request with the same key and mode returns 202 with the order or conversion created by the original request.
When to reuse a key
Responses are stored by default, including400 responses and duplicate_client_reference. Use a new key when you correct a request. A client_reference of 1 to 64 characters from [A-Za-z0-9_.:-] lets you retry an order safely with a new idempotency key. Look up the original order if the reference is already in use.
You may retry the same request with the same key after the cause of these refusals clears.
429and5xx, including504 request_timeoutwhen a request runs past 20 seconds. An order or conversion create retry finds the existing resource if it was created.- From order placement on
POST /v1/orders,velocity_limit_exceeded,api_key_spend_cap_exceeded,tier_limit_exceeded,account_frozen,price_changed,product_unavailableandinsufficient_funds. - From the sandbox money gates,
409 test_mode_unavailableonPOST /v1/orders,POST /v1/fx/quotes,POST /v1/fx/conversionsandPOST /v1/fx/conversions/{id}/cancel.
POST /v1/fx/conversions, the API stores 409 insufficient_funds for insufficient NGN, 403 account_frozen for an account freeze, and 403 tier_limit_exceeded from the conversion’s tier checks. These refusals mean the request created no conversion. Once the cause clears, submit with a fresh idempotency key and a valid, unused quote. If the outcome is uncertain, retry the original request with its original key to recover any conversion it created. Live-key authorization can also return 403 tier_limit_exceeded. Authorization runs before idempotency, so that refusal leaves the key available.
After 503 database_busy, the key can stay claimed for up to 30 seconds. Retries during that period can receive 409 idempotency_key_in_progress. Follow Retry-After when present.
A reveal with codes is never replayed. The replay returns 409 idempotency_response_unavailable. Use a fresh key to reveal again within the original 24-hour window.