Idempotency-Key on write operations:
POST /transactionsPOST /transactions/{id}/cancel
Required Header
Retention Window
Idempotency responses are retained for 24 hours. Keep keys in your logs/trace context to support replay diagnostics.Rules
- New business action => new idempotency key.
- Retry same business action => same idempotency key.
- Reusing a key with a different payload returns
409 Conflict.
Conflict Matrix
- Same key + same payload + completed prior response: returns cached success.
- Same key + same payload + in-flight request: returns conflict/in-progress signal.
- Same key + different payload: returns
409.
Merchant Reference Interaction
merchant_reference is a separate canonical uniqueness key. If the same reference is reused with conflicting intent, transaction creation returns 409 even with a different idempotency key.