IOSOR Learn
Reconcile DLR Segment Counts Against Billed Encoding Units
How to reconcile carrier DLR segment counts against billed encoding units when multipart or charset shifts inflate charges, then gate route behavior via partner comparison.
Lead Telecom & Routing Architect · Lausanne, CH
Reconcile DLR segment counts against billed encoding units by joining each carrier receipt to the exact encoding snapshot used at send time, then flagging any unit delta before the invoice closes. The reconciliation assumes nothing about charset, split logic, or route behavior until the receipt and the billing line agree.
Build the receipt-to-billing join key
Every reconciliation starts with a stable join key. Capture message id, campaign id, destination E.164, and the encoding snapshot hash at submission, then store them alongside the DLR payload. The DLR returns reported segment counts per message; the billing line returns billed encoding units. Join on message id first, destination second, and campaign third as a fallback.
Classify segment mismatch by origin
Not every delta means the same thing. Split mismatches into three buckets: multipart split differences, charset shift differences, and drop or duplicate receipts. Multipart differences show up when the carrier reports N segments while billing counts N plus one — usually a concatenation header or a split boundary that drifted.
Quantify billed-unit impact per route
For each classified bucket, compute the unit delta per route and per template. Multiply the delta by the billed unit cost to get a currency figure, then express it as a share of that route's monthly billed units. A route with a high delta share and low volume is a configuration problem; a route with low delta share and high volume is a real money leak.
Gate the evidence before disputing
A dispute without evidence is noise. Before raising anything with a partner, confirm the DLR set is complete for the billing period, the encoding snapshot is reproducible from your own logs, and the mismatch is classified. Export the reconciled rows with join keys, classification, and delta figures. Check that webhook latency did not push receipts outside the window; if it did, recompute against the actual receipt date.
Keep the three audits aligned
This reconciliation depends on adjacent checks staying current. The segment-count gate defines how multipart receipts are normalized before the join; review segment reconciliation gate to confirm the counted units match the billed ones.
Start with IOSOR
Run the operational checklist against verified partner routes rather than assumed behavior. First, pull your top three routes by billed units and open the Decision Brief partner comparison to line them up on charset handling, multipart splitting, and DLR reporting.
Related: PAYG hold before first debit · Wallet stop-lines before production.
IOSOR takeaway
Every reconciliation starts with a stable join key. Check that webhook latency did not push receipts outside the window; if it did, recompute against the actual receipt date (/tools/brief · DLR / webhook).
Was this guide helpful?
Related guides
- Encoding Route Selection: Verify Charset Cost Bands Before You Commit
Pick an SMS or email route only after charset handling and segment billing match your payload mix. Verify cost bands and DLR charset consistency before volume.
- UDH Reference Lifecycle Reconciliation Across Multipart Routes
Verify how each multipart route allocates, reuses, and expires UDH reference numbers, then compare partner behavior when collisions or exhaustion threaten reassembly and billing.
- UDH Concatenation Reference Window Exhaustion: Pre-Send Gate and Route Comparison
Decide if your SMS route survives multipart UDH reference windows: pre-send gate checks, DLR segment accounting, and partner route comparison via /tools/brief.












