Skip to content

docs(errors): hint for idempotency_key_reused - #18

Merged
pviti merged 1 commit into
mainfrom
fix/idempotency-key-reused-hint
Aug 17, 2026
Merged

docs(errors): hint for idempotency_key_reused#18
pviti merged 1 commit into
mainfrom
fix/idempotency-key-reused-hint

Conversation

@pviti

@pviti pviti commented Aug 17, 2026

Copy link
Copy Markdown
Member

Follows commercelayer/rail0-gateway#196: the gateway now binds an Idempotency-Key to the request, so reusing a key with different terms (a corrected amount, another payee, another chain) is a 422 idempotency_key_reused instead of a 200 carrying the first payment.

Adds the code to the error-hint table so the message a user sees names the fix — reuse the key only to retry the same request, or pick a new one — and says the same where the README documents the key.

🤖 Generated with Claude Code

The gateway now binds an Idempotency-Key to the request, so reusing a key with
different terms is a 422 idempotency_key_reused instead of a 200 carrying the
first payment (commercelayer/rail0-gateway#155). Adds the hint and says so where
the README documents the key.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@pviti
pviti marked this pull request as ready for review August 17, 2026 14:44
@pviti
pviti merged commit 1e24964 into main Aug 17, 2026
1 check passed
@pviti
pviti deleted the fix/idempotency-key-reused-hint branch August 25, 2026 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant