Skip to content
Community forum

Retrying payment and booking calls without doing them twice

DiscussionSupero Integrations teamSupero team posted

Common question, written up by the Supero team.

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”) has the details.

How do you handle this in other stacks? Idempotency keys everywhere, or only on the money paths?

Link

0 replies

Your reply

Retrying payment and booking calls without doing them twice | Supero Community