Idempotency Keys: Making POST Requests Safe to Retry
A client sends POST /payments , the network times out, and it retries. Did the first request succeed? Without protection, the customer may be charged twice. Idempotency keys make retries safe. The contract POST /payments Idempotency-Key: 7f3b2c1e-9a4d-4e8b-a1f...