Skip to main content
Idempotency prevents duplicate orders when network failures cause clients to retry POST requests. The Partner API does not currently enforce an Idempotency-Key header. Retrying POST /v1/orders with the same body can create duplicate orders. Use merchant_reference as your own idempotency key:
  1. Generate a unique merchant_reference per intended order (UUID)
  2. Persist it before you call the API
  3. On 5xx or timeout, retry with the same merchant_reference
  4. On success, persist data.reference and stop retrying
Webhook handlers should treat event + data.reference as a deduplication key. Delivery retries can produce duplicates.

Retry decision tree