IOSOR Learn
Webhook Replay Idempotency Ledger for WhatsApp Quality Routes
Verify that replayed delivery webhooks cannot double-count delivered messages, trigger duplicate billing, or corrupt route-health metrics. Compare partners on replay protection and ledger exports.
Lead Telecom & Routing Architect · Lausanne, CH
A replayed DLR webhook must resolve to one immutable delivery event, not a second billable outcome. Use the Decision Brief to compare replay protection, event identifiers, ledger exports, and reconciliation evidence.
Replay model and event identity
Define the canonical key as partner event ID plus message ID, recipient E.164 hash, status, and event timestamp. Test exact duplicates, out-of-order delivered/read updates, retries after HTTP 500, and delayed batches. A valid route returns the original acknowledgement for an identical payload, while a changed payload with the same event ID is quarantined.
Ledger invariants and billing controls
Require an append-only ledger with received-at time, payload checksum, signature result, processing result, and deduplication reason. Delivered count, billable count, and route-health numerator must remain unchanged after 1, 10, and 100 replays. Reconcile ledger entries against DLR receipts and invoice line items; OTP and SMS traffic need separate assertions because retries can distort conversion and delivery rates.
Adversarial replay test
Capture signed production-like payloads, then replay them across workers, regions, and deployment versions. Include clock skew, missing headers, reordered JSON fields, and a valid old signature outside the acceptance window. The receiver should authenticate before deduplication, persist the key atomically, and expose a replay metric. Fail any route where a timeout causes a second charge or where manual reprocessing bypasses the ledger.
Evidence to request from partners
Ask for the deduplication window, storage durability, idempotency scope, export schema, and incident procedure. Evidence should include raw webhook samples, redacted ledger rows, replay-test output, and a reconciliation report linking message IDs to charges. Confirm whether exports preserve original event time and correction history.
Reconciliation and related audits
Run a daily three-way match: accepted webhooks, unique ledger events, and billed DLR outcomes. Investigate unmatched event IDs, negative latency, and status regressions before using route-health dashboards. Keep raw payloads under the agreed retention policy and make replay investigations reproducible.
Start with IOSOR
Open the Decision Brief for WhatsApp Quality partner comparison and shortlist routes with exportable idempotency evidence. Reconcile ledger entries against DLR receipts and invoice line items; OTP and SMS traffic need separate assertions because retries can distort conversion and delivery rates. Capture signed production-like payloads, then replay them across workers, regions, and deployment versions.
PAYG hold before first debit · Wallet stop-lines before production.
IOSOR takeaway
Define the canonical key as partner event ID plus message ID, recipient E.164 hash, status, and event timestamp. Keep raw payloads under the agreed retention policy and make replay investigations reproducible (/tools/brief · DLR / webhook).
Was this guide helpful?
Related guides
- WhatsApp Template Parameter Mapping: Failover Audit for Route Comparison
Audit template parameter mapping, header and media placeholders, and fallback behavior across partner routes before committing volume after a route switch.
- Template Rejection Remediation Gate for WhatsApp Route Quality
Classify template rejection reasons, quantify resubmission latency, and decide whether to fix copy or re-route via /tools/brief partner comparison.
- Repair WhatsApp Template Status Sync Drift Before Sends Debit
Audit how template approval, rejection reasons, and pause flags stay synchronized across route partners, so a stale approved state never debits a campaign or causes silent delivery gaps.












