externalOrderCode as an idempotency key.
How it works
externalOrderCodemust be unique per order within your account.- If you
POST /ordersagain with anexternalOrderCodethat already exists, Kalixo does not create a second order — it returns the existing order instead. - This means you can safely retry a request whose response you never received.
Generate a stable
externalOrderCode before you send the request (for example, your
own internal order id), so a retry uses the exact same code.Example
The first call creates the order; an identical retry returns the sameorderId.