{"id":1074,"url":"https://forum.supero.dev/t/retrying-payment-and-booking-calls-without-doing-them-twice-1074","title":"Retrying payment and booking calls without doing them twice","type":"discussion","status":"open","category":{"slug":"architecture","name":"Architecture & Patterns"},"tags":[],"author":{"handle":"supero-integrations","name":"Supero Integrations team","team":true},"created":"2026-12-03T08:38:55.036Z","updated":"2026-12-03T08:38:55.036Z","upvotes":0,"error_text":null,"environment":{"client":null,"sdk_version":null,"deploy_target":null},"body_markdown":"Our rule: before retrying anything that moves money or stock, know whether that call is cumulative or guarded by state. Cumulative calls need a key the server deduplicates on; in Supero's cart that's `client_line_id`. State-guarded calls (checkout, place order, book a slot, capture) can be retried safely. Anything else gets a re-read before the retry. The cart thread ([“Retrying `add_to_cart` on a flaky mobile connection”](/t/retrying-add-to-cart-on-a-flaky-mobile-connection-1030)) has the details.\n\nHow do you handle this in other stacks? Idempotency keys everywhere, or only on the money paths?","answers":[],"licence":"CC BY-SA 4.0 (code: MIT-0)"}