Skip to content

We use analytics cookies to see how the site is used. They are only set if you accept. Accepting also turns on session recording (pages viewed, clicks and scrolls) so we can fix problems; what you type stays hidden. It also lets Meta (Facebook) see your visit, so we can measure our ads. Read the privacy policy

Editorial

Launch & Discovery Guides

Practical guides on launching products, getting discovered, and reaching the right audience - written for founders and developers.

RSS Feed
LatestAPI Design

Idempotency-Key: Retry a Timed-Out POST Without Charging the Customer Twice

A POST times out and the client cannot know if it worked. A small server I ran today shows the double charge, then the Idempotency-Key header that prevents it, with the status codes the IETF draft and Stripe use.

CodeTrendy Editorial Team

November 12, 20266 min read