Idempotency

For requests that were interrupted during transmission and to which no response was received, we require idempotency keys. This way, you can safely repeat these requests without us accidentally performing the same operation twice.

How idempotency works

If a request for placing an order is interrupted due to a network connection error, you can repeat it with the same idempotency key to ensure that no more than one order is placed.

Implementing idempotency

Provide an idempotency-key header with the request. This header must have a randomly generated UUID as its value.

Example idempotency key

idempotency-key: ccb07f42-4104-44ad-8e1f-c660bb7b269c

Generate a new and unique idempotency-key value for each new request, but make sure that in case you need to retry a previous request, you use the same idempotency-key value as for the repeated request.

NOTE

Repeat attempts are recognised as idempotent during a time window of at least 24 hours.


The following POST requests require idempotency keys; sending idempotent keys for other endpoints or HTTP methods has no effect:

Was this page helpful?