IOSOR Learn

Duplicate webhook must not create a second debit

Fail path: retries and replays stay idempotent on PAYG money and inbox — one event ID, one debit row, one inbox line.

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

Lead Telecom & Routing Architect · Lausanne, CH

IOSOR Expert · Q&A

At-least-once delivery will retry. A duplicate webhook that posts a second debit or a second inbox line is a money-and-ops incident, not a “harmless ack.” This page is the fail path: retries and replays stay idempotent on PAYG money and inbox — not the API send-idempotency essay and not the inbound SMS retry playbook.

IOSOR is white-label PAYG. PAYG funds a duplicate-event smoke on one consumer; soft review near USD 1,000/month prices “retry = new charge” as recon debt. Clients see white-label event IDs only.

Idempotency is a fail path, not a slogan

Happy path: one signed event, one accept, one debit. Fail path burns trust — timeout, 5xx, provider replay, operator re-push. Store the idempotency key from the Webhook contract before the first send before side effects: ledger, inbox, CRM. Soft USD 1,000/month treats “ACK then invent a new key” as volume debt; PAYG proves a forced replay never doubles money.

What counts as a duplicate

| Signal | Treat as duplicate when | Safe outcome.

| | |.

| Event ID | Same ID already accepted in-window | ACK; no second debit.

| Message ID | Same message already ledger-linked | Reuse row; no new charge.

| Inbox key | Same MO/MT already filed | No second inbox line.

| Outside replay window | Stale retry after gate reject | Reject; no money/status write.

| Unknown type | Not on the contract event list | Drop; no invented success.

The Signature and replay-window gate decides authenticity and freshness. This page owns what happens after a valid duplicate: one end state, one money line, one inbox line.

Money must not move twice

A second debit for the same event ID is a bug even if product “still shows delivered.” Finance filters by event or message ID and sees one PAYG row for that UTC window. Partial side effects after ACK — CRM first, ledger later — manufacture double truth. If processing fails after persist, retry the worker on the same key; do not re-accept the HTTP body as a new charge. Soft volume language stays blocked until duplicate smoke shows one ledger line.

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

Inbox must not double either

Idempotency is not only money. A replayed inbound or delivery event that opens a second inbox thread trains support to chase ghosts and can trigger autoreply loops. Store the inbox key with the same event ID used for debit. Product and finance share reject/duplicate words: Shared status language for product and finance. PAYG proves one forced replay leaves inbox cardinality unchanged.

Buyer checklist for duplicate-safe webhooks

  1. Idempotency key shape agreed in the contract and stored before side effects?
  2. Duplicate in-window event ID → ACK without second debit?
  3. Same message ID never opens a second PAYG ledger row?

Start with IOSOR

Force one signed replay inside the window on a corridor that already billed. Export the event id next to the ledger id and prove a single debit row plus a single inbox row. If a second debit appears, halt that consumer and refund the extra row — do not net it against later traffic. This gate is replay money, not an E.164 syntax check and not a shipping-copy job.

IOSOR takeaway

A replay is not a new send. One event id writes one debit.

Do: keep signature plus replay window on, then prove one debit after an in-window POST. Don’t: debit every POST, or treat a network retry as a second invoice.

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