IOSOR Learn

Correlating DLR Status Webhooks with balance reservation

Learn how to reconcile incoming delivery receipt callbacks against held PAYG funds to release reserved ledger amounts within the IOSOR CPaaS infrastructure.

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

Lead Telecom & Routing Architect · Lausanne, CH

IOSOR Expert · Q&A

Correlating DLR Status Webhooks with balance reservation. In the IOSOR ecosystem, every outbound SMS request triggers an immediate JIT (Just-In-Time) ledger check. When a request is initiated, the system places a temporary hold on the account balance to ensure sufficient funds exist for the message delivery.

Understanding the balance reservation Mechanism

This hold is not a final debit but a reservation of capital. The final settlement occurs only upon receiving the DLR (Delivery Receipt) status from the network, ensuring that your financial ledger accurately reflects the actual consumption of messaging credits.

The Lifecycle of a DLR Callback

Once a message is dispatched, the network returns a DLR status. Your webhook endpoint receives this payload, which contains the unique message ID and the final status code. The IOSOR engine correlates this ID with the original transaction record. If the status indicates a successful delivery, the system converts the held amount into a permanent debit. If the status indicates a failure, the hold is released back into your available balance, ensuring you only pay for successful attempts.

Managing Ledger Reconciliation

Reconciliation is automated, but developers must monitor the latency between the dispatch and the DLR arrival. If a DLR is delayed, the hold remains active, which may temporarily reduce your available credit. For accounts maintaining a PAYG floor, this is critical to prevent service interruptions. If your monthly volume exceeds USD 1,000/month, our system triggers a soft review to adjust your credit limits and ensure smooth throughput for high-frequency traffic.

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

Handling Edge Cases and Timeouts

Not all messages receive a DLR within the expected window. If a network fails to provide a status update, the IOSOR system employs a cleanup job that releases stale holds after a defined TTL (Time-To-Live). This prevents 'ghost' holds from impacting your liquidity. Always ensure your webhook handler acknowledges receipt of the DLR within 500ms to maintain synchronization between our ledger and your internal accounting records.

Essential Integration Resources

To ensure your implementation is solid and follows best practices for financial integrity, refer to these guides:

Start with IOSOR

To finalize your integration, head to the IOSOR Console and navigate to the Webhook Settings to configure your ledger reconciliation endpoint. Ensure your listener is ready to process the dlr.status payload and map it directly to the corresponding transaction hold ID. Testing this correlation in the sandbox environment will guarantee that reserved funds are released or debited instantly without ledger drift.

IOSOR takeaway

This guide demonstrated how to safely bridge the gap between real-time message delivery and financial ledger accuracy. By correlating incoming DLR callbacks with active balance reservation, you prevent capital lockup and ensure that your available balance reflects actual delivery states rather than worst-case assumptions.

Do design your webhook handler to be strictly idempotent, ensuring that duplicate DLRs do not trigger multiple ledger adjustments. Don't rely solely on immediate callbacks; always implement a fallback TTL mechanism to release stale holds when a carrier fails to return a delivery receipt.

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