Guides
Idempotency
POST /v1/payments requires an Idempotency-Key header. Use a value unique to the payment you intend to make — your invoice id, a UUID, anything stable that you can reproduce on a retry.
- Same key, same body → the original payment,
200 OK, headerIdempotent-Replayed: true. Nothing is created and nobody is paid twice. - Same key, different body →
409 idempotency_key_reused, with the differing fields listed. A key is a promise about one request; a different body is a bug, not a retry. - Missing →
400 idempotency_key_required.
Retry on a timeout or a 5xx with the same key. This is the one thing that makes a network failure safe on a payouts API: without it, a request that timed out after we accepted it is indistinguishable from one that never arrived.
A replay does not consume your daily payment cap a second time.
A create that was refused (any 4xx) does not use up its key: nothing was stored under it, so the next request with that key is processed as a new one.