Give the operation a stable identity

Record the booking reference, intended action and current processing state. Keep incoming event identity separate from the identity of the business operation; more than one event can describe the same booking.

More detail

For a supported outbound API, follow the provider’s idempotency contract. Stripe documents different behaviour by API version, so verify the version, parameters and retention rules actually used.

Receive first, process with a visible state

Verify the notification according to the sender’s documented signature scheme. Persist accepted work durably before treating it as received. A queue can then separate delivery from slower processing.

  • Event received → validate and record.
  • Worker runs → check operation state.
  • Outcome confirmed → store the destination reference.
More detail

Use explicit states such as received, processing, completed and needs review. A repeated delivery should consult the existing record instead of blindly creating another preparation task.

Retry only when a retry can help

A timeout can leave the outcome unknown. Check the destination or use its documented retry mechanism before repeating an action with side effects.

More detail

Set a retry limit and space attempts with capped backoff and jitter. Stop automatic attempts for a field mapping error or an access problem that needs correction. Keep the failed item available for review.

Make recovery usable by the team

Show what was attempted, the last meaningful error and the next allowed action. A manual replay must use the same duplicate protection as the automatic path.

  • Deliver the same notification twice: one intended task remains.
  • Simulate a timeout after task creation: reconcile the existing task.
  • Restore the destination: pending work can resume.
  • Exhaust the retry budget: the item reaches an owned review queue.

Key takeaways

  • Distinguish event identity from business-operation identity.
  • Treat an unknown outcome differently from a confirmed failure.
  • Make replay, reconciliation and ownership part of delivery.

Questions before we start

Does a webhook guarantee the next task exists?

No. Receipt and completion are different states. Confirm the destination reference or another agreed business outcome.

Can every error be retried?

No. Follow the provider’s contract and classify the failure. Repeating an invalid request does not correct its data.

Sources & further reading

  1. Stripe · Idempotent requestsLiving API reference; reviewed 2026-11-10. Behaviour depends on API version.
  2. Stripe · Webhook deliveryLiving documentation; reviewed 2026-11-10. Original publication date not stated.
  3. AWS · Timeouts, retries and backoff with jitterPublished: 2019-12-05. Original publication 2019-12-05; reviewed 2026-11-10.