IOSOR Learn
Stale Webhook Endpoint Replay Safety During Provider Migration
Decide if legacy webhook endpoints can replay or re-emit events after cutover without duplicating downstream actions, then compare partner webhook and DLR semantics.
Lead Telecom & Routing Architect · Lausanne, CH
Legacy webhook endpoints can replay safely after cutover only when every re-emitted event carries a stable idempotency key and downstream handlers deduplicate on it; otherwise stale replays duplicate SMS actions, DLR state changes, and OTP confirmations. Verify this before decommissioning the old endpoint.
Map replay surfaces before cutover
Inventory every event class the legacy endpoint can re-emit: inbound SMS, DLR receipts, OTP delivery confirmations, STOP and Verify OK callbacks. For each class, record the payload shape, the identifier the old provider used, and whether that identifier survives a replay unchanged.
Test idempotency keys against real DLR receipts
Do not trust documentation alone. Capture a sample of real DLR receipts from the legacy endpoint, replay them twice into a staging handler, and confirm the second pass is a no-op. Check that the idempotency key is derived from provider message id plus event type, not from arrival timestamp or request hash, because timestamps change on replay.
Gate replay by sender and template state
Replay safety is not only about keys. A stale webhook may re-emit events for senders or templates that were retired during migration, and the new handler may reject or misroute them. Confirm that sender identity and template version are part of the event payload and that the handler resolves them against the current registry rather than the legacy one.
Measure webhook latency and replay windows
Stale endpoints often replay on a delay, so latency matters. Measure the p95 and p99 delivery gap between the legacy endpoint and the new one for the same event class. If the legacy replay window exceeds the downstream dedupe retention period, duplicates become possible even with correct keys. Set the replay window shorter than the dedupe retention, and record both numbers in the cutover checklist.
Compare partner webhook and DLR semantics
Partner behavior differs on retry counts, DLR receipt timing, and whether re-emitted events keep the original message id. Compare verified partner routes for your channel and corridor in the Decision Brief tool at compare partner routes before you lock the replay policy. Record each partner's retry schedule, DLR latency, and idempotency guarantees next to your replay matrix.
Start with IOSOR
Run this checklist before allowing any legacy replay: confirm a stable idempotency key exists for every event class; replay real DLR receipts twice and verify the second pass is a no-op; test retired sender and template events and confirm they are recorded as stale; measure p95 and p99 replay latency and keep the replay window shorter than dedupe retention; and compare partner webhook and DLR semantics for your corridor in the Decision.
Related: PAYG hold before first debit · Wallet stop-lines before production.
IOSOR takeaway
Inventory every event class the legacy endpoint can re-emit: inbound SMS, DLR receipts, OTP delivery confirmations, STOP and Verify OK callbacks. Record each partner's retry schedule, DLR latency, and idempotency guarantees next to your replay matrix (/tools/brief · DLR / webhook).
Was this guide helpful?
Related guides
- Verifying Suppression List Portability Before Migration Cutover
Pre-cutover checks for opt-outs, bounces, complaints, and consent suppressions: export/import fidelity, DLR and webhook evidence, and partner route comparison.
- Sender ID Ownership Continuity Audit Before Cutover
Verify alphanumeric sender IDs, short codes, and originating numbers keep ownership proof and carrier registration parity across providers before any message leaves the new route.
- Auditing Number Portability Lock Windows Before Migration Cutover
Map portability lock states, port-out freezes and carrier release dates per line so you know which numbers can legally move inside your migration window.












