POST request must include an Idempotency-Key header. A POST without it is rejected with 400. GET requests are naturally idempotent and never require a key.Idempotency-Key header. The key may be any string up to 255 characters; we recommend a UUID.| Situation | Result |
|---|---|
| Same key, same request body | Returns the stored response of the original request. |
| Same key, different request body | Returns an error: the key has already been used with different parameters. |
| Same key while the first request is still in progress | Returns an error: a request with this key is already being processed. |
| Key reused after it has expired | Treated as a new request. |
POST: creating payments, payouts and appeals, confirming, canceling and refunding payments, and uploading files.