However, if you include an
idempotency_key
in your POST request body, Zinc will guarantee that only a single order is created for that key — even if you retry the request due to a network error or timeout.
- How to use:
- Add a unique
"idempotency_key"
(such as a UUID or random string) to the body of any POST request
- Add a unique
- Behavior:
- Requests with the same key will always return the same response
- If you receive an error, you can retry with a new key
- Once a request succeeds or fails, the order will not change for that key
Example Idempotency Key Request
Idempotency keys are strongly recommended for all POST requests
If you retry a request after a 5XX error without an idempotency key, Zinc cannot guarantee deduplication and will not refund duplicate orders.
If you retry a request after a 5XX error without an idempotency key, Zinc cannot guarantee deduplication and will not refund duplicate orders.