Idempotent Payment API

medium~30 min

A client retries a payment request after a timeout, not knowing if the first request succeeded. Explain how to design the API so this retry cannot create a duplicate payment.

Solution

This one has no written solution — the answer is your own story or your own submission.