Product & integration
Idempotency
Also called: idempotency key, duplicate protection
Idempotency is the property that repeating a request or replaying an event produces the same result as doing it once. In payments it is what stops a retry from creating a second order or crediting a user twice. Networks fail mid-request. Webhooks arrive twice. A user double-taps a button. Every one of those is a duplicate waiting to happen unless the system recognises it. The usual mechanism is an idempotency key: a unique value the client sends with each logical action, which the server uses to return the original result on a repeat.
What the product owner decides
Make your webhook receiver idempotent by storing processed event IDs. Make your order creation idempotent by keying on the partner order ID. Both are cheap. Refunding a double credit is not.
Related terms
Questions
Is idempotency the provider's problem or mine?
Both. The provider deduplicates order creation by your key. You deduplicate their events by event ID. Each side protects the other.
Maintained by Transak. General explanations, not legal, tax or financial advice, and not an offer or inducement to buy or sell any crypto asset. Live prices and fees are always shown before you confirm.