IOSOR Learn
Reconcile Prepaid Deductions Against DLR Outcomes in Parallel
Match every PAYG balance deduction to a confirmed DLR or refund in parallel streams. Detect silent loss from billing lag, then compare partner routes.
Lead Telecom & Routing Architect · Lausanne, CH
Run deduction and DLR streams side by side and reconcile each debit to a final DLR or a refund before the window closes, so no message is billed without a confirmed outcome.
Map the two parallel ledgers
Pull the PAYG deduction ledger from your billing path and the DLR outcome ledger from the receipt path into one join key: internal message ID plus E.164 recipient. Both streams must be timestamped at the same clock source. Build three buckets per send: deducted-with-final-DLR, deducted-without-final-DLR, and DLR-without-deduction.
Set tolerance for DLR and billing lag
Parallel streams never land at the same millisecond. Define a tolerance band: DLR finality within your retry budget, deduction entry within one billing tick. Anything deducted past the tolerance without a final DLR goes to a pending queue, not a loss report. Deductions with duplicate IDs or re-entries must be collapsed before counting. Compute gap rate daily per partner route and per corridor.
Verify DLR receipts against deduction keys
Each final DLR must carry a key that resolves to exactly one deduction. Check webhook latency: a final DLR arriving after the reconciliation window is a lag, not a loss, and must reopen the match. Confirm the sender and template gates embedded in the receipt align with what was billed — a mismatched template means the deduction belongs to a different send.
Handle refunds and silent loss
For deducted-without-final-DLR after the band, issue a refund or a credit entry and log the reason. Silent loss is any debit whose refund never posts and whose DLR never finalizes. Track refund-to-deduction ratio per route; a ratio drifting above your baseline means the route is failing before delivery or billing is double-posting. Keep a monthly reconciliation report that ties total deducted, total finalized, total refunded, and open gap.
Close the loop with related audits
Two streams only reconcile if the underlying states are trustworthy. Run the balance-to-failure correlation to confirm deductions map to delivery outcomes, check the burst-cap versus hold audit so temporary holds do not masquerade as deductions, and validate finality in the DLR state machine before treating any receipt as final. Treat these as prerequisites: parallel reconciliation over an unreliable finality state will chase phantom gaps.
Start with IOSOR
Run the partner route comparison on /tools/brief to see verified routes for your corridor before attributing gaps to a single partner. Pull the DLR outcome feed and line it up with each PAYG deduction, keeping the reconciliation per partner and per route.
Related: PAYG hold before first debit · Wallet stop-lines before production.
IOSOR takeaway
Pull the PAYG deduction ledger from your billing path and the DLR outcome ledger from the receipt path into one join key: internal message ID plus E.164 recipient. Treat these as prerequisites: parallel reconciliation over an unreliable finality state will chase phantom gaps (/tools/brief · DLR / webhook).
Was this guide helpful?
Related guides
- Inbox Placement Seed List Rotation: Audit and Partner Comparison
Audit seed-list rotation across ESPs and warmup tools for unbiased inbox-placement signals, then compare verified deliverability partners via /tools/brief.
- Verify GSM7 Extension Table Cost, SLA Enforcement Gate on Deliverability Routes
Operational gate to verify GSM7 extension table cost and SLA enforcement before raising SMS volume, then compare partner routes in /tools/brief for deliverability.
- Delivery Latency SLA Verification: Handoff Gate for Route Selection
Verify each candidate route's claimed delivery-latency SLA at the handoff boundary before comparing partners in Decision Brief and committing SMS volume.












