> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gochameleon.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# Retry requests safely

> Create one payment per logical attempt, including after a network timeout.

Every creation request needs an `Idempotency-Key` header with **16–128 letters, digits, hyphens, or underscores**.

```http theme={null}
Idempotency-Key: order_example_000001
```

Persist the key and request body with your order before sending the request.

| Request | Result |
| - | - |
| New key | New payment; HTTP 201; `Idempotency-Replayed: false` |
| Same key and identical normalized body, same organization | Original payment; HTTP 200; `Idempotency-Replayed: true` |
| Same key but changed body | HTTP 409 conflict |

After a timeout or uncertain server response, retry the same request with the same key. Do not immediately generate another key: the original request may already have succeeded.

The same key can return a confirmed or expired payment. It does not reset checkout or create a second payment. Start a deliberately new attempt with a new key. Changing the API key does not change idempotency scope within the organization.

In the playground, changing the amount while retaining the example idempotency key will produce a conflict after the first successful creation. Change the key only when you intend to create a new payment.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.