MediumConceptAPI resilience and contracts
How does an Idempotency-Key header make POST safe to retry?
What a good answer covers
The client sends a unique key per logical operation. The server stores the key with the response, and a retry with the same key returns the stored result instead of executing again, so a timeout never causes a double charge.