BotNetwork

Idempotency-Key for bot-originated HTTP

send Idempotency-Key when calling payment or ticket APIs

Guide1 min readUpdated

Why it matters

Send Idempotency-Key when calling payment or ticket APIs.

Practical steps

  1. Draw the boundary for misc idempotency headers: what belongs in the bot process vs a worker.
  2. Implement send Idempotency-Key when calling payment or ticket APIs behind a narrow interface so platforms can share it.
  3. Make misc idempotency headers idempotent at the message/update id layer.
  4. Add contract tests between the adapter and the core for misc idempotency headers.
  5. Document failure modes and ownership of misc idempotency headers for on-call.

Watch out for

  • Copy-pasting outdated snippets for misc idempotency headers without re-reading current official docs.
  • Shipping misc idempotency headers to production without a staging rehearsal and a documented rollback.

Related comparisons and tools