To safely retry an API request without accidentally performing the same operation twice, you can attach a unique key to any POST request made to the Stripe API via the Idempotency-Key: <key> header.
To perform an idempotent request, attach a unique key to any POST request made to the API via the Idempotency-Key: <key> header.
[3] Stripe API Reference - Idempotent Requests, https://stripe.com/docs/api/idempotent_requests?lang=curl