POST requests — any request that creates a payment or changes its state. 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 request. It is strongly recommended for requests that move money — creating a payment or issuing a refund — where an accidental retry would otherwise result in a duplicate operation.