Make operations safe to retry without unintended side effects
POST /paymentAn idempotency key is a unique client-generated ID (UUID) attached to each request. The server stores the key + response. On retry, it returns the stored response without re-executing the operation. This makes retry-safe APIs possible.