What an idempotency key is
It is a unique piece of text that goes with a payment request. If the request is repeated with the same key (because of a network drop, a timeout or an agent that insists), the service recognizes it as the same attempt and gives back the same payment instead of creating another. Without it, a retry can charge twice.
The rules that matter
- A new key for every distinct payment. Two identical purchases made on purpose need two keys.
- The same key only to repeat the same attempt, with the same amount and the same destination.
- The same key with a different amount or destination is a conflict. In the Nouron Pass API specification it answers 409
idempotency_conflict. - If two requests with the same key arrive at the same time, the second gets 409
idempotency_key_in_useand is retried with the same key after the indicated time. - A payment that failed needs a new key. Repeating the same one gives back the same failure.
- Format: 16 to 128 characters of letters, numbers, hyphen and underscore, and that does not repeat a short pattern (like
abababab...) or form an obvious sequence: the API rejects those keys.
Random key or key derived from the task
A random key (UUID) is the simplest, but you have to store it to repeat it on a retry. A derived key is computed from the agent, the task reference, the amount and the destination: the retry gets the same key without storing anything, and a change of amount or destination gives another key. To keep limits under control, pair them with a clear instruction (spending instruction) and limits enforced outside the agent (spending limits guide).
Frequently asked questions
Are the keys I generate stored or sent?
No. They are generated and reviewed in your browser, and the page does not store or send what you type.
Why derive the key from the task?
Because the retry gets the same key without anyone having to store it, and if the amount or destination changes the key changes too and is not mistaken for the earlier attempt.
What do I do if the payment already failed?
Generate a new key. Repeating the same key gives back the same result, including the failure.
Does Nouron Pass use idempotency keys?
The Nouron Pass API specification asks for an idempotency key to create a payment. Nouron Pass is in early access and runs in the Sandbox; it does not process real payments yet.
Try these limits in the Sandbox
Nouron Pass is designed to enforce limits outside the agent. Today it runs in the Sandbox. Reserve your spot and we will write to you when your access opens.