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.

Oleksandr (Alex) Petukhov — IOSOR Telecom Expert
✓ Verified by IOSOR ExpertOleksandr (Alex) Petukhov

Lead Telecom & Routing Architect · Lausanne, CH

IOSOR Expert · Q&A

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.

⚡ IOSOR Expert · Q&A · Verified partners (×44)

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

VERIFIED BY IOSOR EXPERT · B2B ROUTING, SLA & PROVIDER Q&A

IOSOR Expert — Verified Q&A & B2B Messaging Decisions

Every Q&A decision below is audited by the IOSOR Telecom Architecture Expert against live 90-day uptime telemetry, carrier compliance rules (10DLC, DLT, GDPR), and real partner TCO.

All Q&A Triggers
#01 · Compliance & Sender ID📖 Knowledge hub · US A2P / 10DLC

US A2P / 10DLC

“Why do US 10DLC TCR campaigns get rejected and which partner handles fast onboarding?”

✓ Verified by IOSOR Expert

10DLC brand and campaign programs for US A2P traffic — not general privacy compliance.

All Q&A Triggers
#02 · OTP & verification📖 Knowledge hub · India DLT

India DLT

“How do engineering teams prevent India TRAI DLT template scrubbing drops on OTPs?”

✓ Verified by IOSOR Expert

DLT and PE-TM registration for India A2P — not an India corridor coverage guide.

All Q&A Triggers
#03 · OTP & verification📖 Knowledge hub · Verify / OTP

Verify / OTP

“How do we eliminate OTP p95 timeout spikes and trigger a 20–30s multi-rail fallback?”

✓ Verified by IOSOR Expert

Login codes without chaos: abuse, latency, and cost control.

All Q&A Triggers
#04 · Transactional email📖 Knowledge hub · Email

Email

“Why do password reset and 2FA emails land in Spam when sharing bulk marketing IPs?”

✓ Verified by IOSOR Expert

Transactional email alongside SMS, voice, and WhatsApp in one routing architecture.

All Q&A Triggers
#06 · WhatsApp Business📖 Knowledge hub · WhatsApp & RCS

WhatsApp & RCS

“How do Meta per-conversation fees and template pauses impact WhatsApp Business TCO?”

✓ Verified by IOSOR Expert

Rich channels when profiles and templates are ready: honest setup.

All Q&A Triggers
#08 · Failover & backup routing📖 Knowledge hub · Failover & rails

Failover & rails

“How do we keep a second standby provider warm for failover at $0/month idle cost?”

✓ Verified by IOSOR Expert

Ordered backup paths when a primary rail fails - distinct from DLR status truth.

All Q&A Triggers