Tools

How do I stop a retry from charging my agent's payment twice?

To keep a retry from charging twice, every payment carries an idempotency key: a new key for each distinct payment and the same key only to repeat exactly the same attempt. This tool generates keys, derives them from the task and reviews your retries.

Last updated:

The review follows the rules of the Nouron Pass API specification; if you use another API, the key format and the behavior on a conflict change. The tool sends no payments.

A new key

Generates a random UUID v4. Use it as the key of a NEW payment.

Format the Nouron Pass API requires: 16 to 128 characters of letters, numbers, hyphen and underscore. A UUID qualifies.

A key derived from the task

If the key comes from the task data, a retry computes the same key without storing anything: the same task always gives the same key, and any change gives another.

Your agent's identifier. Letters, numbers and . _ : @ / -

A unique identifier of the task or order. If it changes, it is another payment.

Up to 6 decimals.

Domain or 0x address.

Computing…

Review your retries

Paste your agent's payment attempts, one per line: key, amount and destination. The tool tells you which are valid retries (same key and same payment), which would clash and where a double charge could happen.

Format: key amount destination. Lines starting with # are ignored. Up to 100.

Some things need review Distinct payments that would be created: 5 (a different key creates a payment).

  • pay-8f3a1c5e7b2d4a6c9e0f1a2b3c4d5e6f7a8b9c0d

    Lines 1, 2Valid retry (same key and same payment)

  • job-5521-retry-aaaa-bbbb-cccc

    Lines 3, 4Conflict: the same key with a different paymentthe amount changed

  • run-7788-attempt-1-zxcvbnmasdf

    Line 5A single attempt

  • run-7788-attempt-2-qwertyuiopas

    Line 6A single attempt

  • test

    Line 7A single attemptInvalid key format

Possible double charges

  • Same payment (12.000000 to github.com) with different keys: run-7788-attempt-1-zxcvbnmasdf, run-7788-attempt-2-qwertyuiopas. If it is a retry, use the same key; if they are two purchases, that is fine.

A payment that ended as "failed" needs a new key: repeating the same one gives back the same failure.

Keys are generated and reviewed in your browser. The page does not store or send anything you type.

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_use and 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.