IOSOR Learn
Carrier DLR Webhook Idempotency Contract Enforcement
Verify carrier DLR webhook idempotency guarantees and deduplication logic to prevent billing disputes and state corruption, then compare partner SLAs via Decision Brief.
Lead Telecom & Routing Architect · Lausanne, CH
Operations teams must confirm that every carrier DLR webhook carries a globally unique message-id and that the receiver applies deterministic deduplication within a bounded replay window. Without this contract, duplicate receipts inflate delivery metrics, trigger double-billing, and corrupt campaign state machines.
Idempotency Key Scope and Lifetime
Carriers must emit a stable idempotency key — typically the provider message-id — that survives retries, failovers, and multi-homed delivery paths. The key space must be scoped per account and channel (SMS, WhatsApp, RCS) with a documented TTL of at least 72 hours. Receivers persist the key with a processed-at timestamp and reject any subsequent payload bearing the same key inside the window.
Deduplication Storage and Lookup Latency
Deduplication stores require sub-10 ms p99 lookup to avoid webhook timeout cascades. Redis sorted sets keyed by idempotency key with score=processed-at enable O(log N) existence checks and automatic expiry via TTL. Cold-path fallbacks to PostgreSQL unique indexes must be benchmarked under 50 ms p99. Any lookup exceeding budget triggers a 503 to the carrier with a Retry-After header, preserving at-least-once semantics.
Replay Window Alignment Across Carriers
Carriers differ in retry schedules: some replay at 1 min, 5 min, 15 min; others use exponential backoff to 24 h. The contract mandates a minimum 72 h replay window so that late duplicates — caused by carrier-side queue drains or regional outages — are absorbed without manual intervention. Operators monitor the duplicate-rate metric (duplicates/total webhooks) per carrier; sustained >0.5 % signals a contract breach.
Signature Verification Before Deduplication
Every webhook must pass HMAC-SHA256 verification using the carrier-provided secret before the idempotency key is consulted. Verification failures are logged and metered separately; they never consume deduplication capacity. This ordering prevents replay attacks from polluting the idempotency store and ensures only authentic carrier traffic advances to state transitions.
State Machine Guard Rails
Downstream consumers — billing, analytics, campaign automations — subscribe to a deduplicated event stream (Kafka topic or webhook fan-out) that guarantees exactly-once semantics. Each consumer records the last-processed idempotency key per message-id to survive its own restarts. Discrepancies between the deduplication layer and consumer offsets trigger an alert and a reconciliation job.
Start with IOSOR
Compare verified partner DLR idempotency SLAs, replay windows, and deduplication guarantees for your corridors using the Decision Brief: Compare local-presence partners.
Related: PAYG hold before first debit · Wallet stop-lines before production.
IOSOR takeaway
Carriers must emit a stable idempotency key — typically the provider message-id — that survives retries, failovers, and multi-homed delivery paths. Discrepancies between the deduplication layer and consumer offsets trigger an alert and a reconciliation job (/tools/brief · DLR / webhook).
Was this guide helpful?
Related guides
- DID Pool Lease Expiry Reconciliation Before Local Presence Renewal
Reconcile DID lease expiry dates against active local-presence campaigns to prevent silent number loss, callback drops, and wasted renewal spend before you commit.
- Local Presence DID Rotation Cadence: Verify Before You Compare Routes
Audit your local-presence DID rotation cadence for reputation fatigue and coverage gaps, then compare partner routes that can sustain the required rhythm.
- DID Pool Concurrency Caps: Sizing Local Presence Before Route Lock-In
Size outbound and inbound concurrency per local DID pool, verify partner caps and overage behavior, and set failover headroom before locking a carrier route.












