Idempotency
Retry any write without performing it twice.
Every POST except /access-token requires an Idempotency-Key header. Without it the request returns 400 IDEMPOTENCY_KEY_REQUIRED.
Choosing a key
- Use a new UUID v4 for each operation.
- A key is 1 to 255 visible ASCII characters. A value in double quotes is accepted and the quotes are removed.
- Generate the key before the first attempt and store it with your own record of the operation, so every retry sends the same key.
How retries behave
A key can be used again 30 days after its operation completes.
Unknown outcomes
Some operations ask an external party to act. When no definite answer comes back, the API returns 502 OPERATION_OUTCOME_UNKNOWN. Retry later with the same key. Retries return this response until the outcome is known, then the final response. Never switch to a new key for the same operation.