IOSOR Learn
Duplicate Invoice Detection: Routing Gate Before Partner Compare
Prove suspected duplicate tax invoices are not re-billed through overlapping SMS, voice or messaging routes before you trigger partner failover comparisons.
Lead Telecom & Routing Architect · Lausanne, CH
A routing gate stops suspected duplicate invoices from being re-sent through overlapping routes before any partner failover is triggered. Match each invoice line to one verified route, confirm DLR and webhook evidence, then compare partners only for the lanes the gate has cleared.
Map invoice lines to routes before anything else
Start with the invoice register, not the partner list. For every line, record the invoice ID, tax period, amount, E.164 destination where relevant, sender or template ID, and the single route that carried the original message. The gate exists because the same line can appear in two billing streams when SMS and voice routes overlap, when a retry fires from a second webhook, or when a template is re-sent under a different sender ID. Treat any line with two route references as suspect until evidence resolves it.
Apply the detection gate criteria
A line passes the gate only when three checks agree. First, the invoice ID and amount appear once across all messaging and voice streams for the period. Second, the DLR or delivery receipt timestamp precedes the partner invoice timestamp by a margin you can explain. Third, the webhook log shows one terminal event per message, not a retry pair that triggered a second billable unit. Flag latency gaps where a webhook arrived after the billing cut-off — these often look like duplicates but are timing artefacts.
Separate true duplicates from routing overlap
True duplicates are the same invoice line billed twice. Routing overlap is two routes carrying the same message because failover fired before the first route's DLR was read. Both inflate cost, but they need different fixes. For overlap, inspect the failover trigger threshold and the webhook read order; a voice fallback that starts before the SMS DLR window closes will always look like a duplicate.
Keep evidence that survives an audit
Auditors ask for the chain, not the conclusion. Retain the invoice register, the DLR receipts, webhook logs with timestamps, sender and template IDs, and the gate decision with its criteria. Keep retention aligned to the tax period and to archiving rules already in force. Redact personal data in destinations while keeping E.164 structure traceable. If a duplicate is confirmed, record the credit or adjustment reference and link it to the original line.
Connect the gate to reconciliation work
Use the discrepancy audit to formalise how flagged lines are disputed and closed, and use the intermediary fee reconciliation to check whether platform fees were charged on lines the gate already cleared. Route cost allocation should assign each cleared line to exactly one route owner before any partner comparison begins.
Start with IOSOR
Run the gate, then compare. Build one checklist per channel and corridor: list suspect invoice lines with invoice ID, amount and E.164 destination; attach DLR receipt ID and webhook timestamp for each; mark each line cleared, overlap, or confirmed duplicate; record sender and template ID for every cleared line; confirm one route owner per cleared line.
Related: PAYG hold before first debit · Wallet stop-lines before production.
IOSOR takeaway
Start with the invoice register, not the partner list. Route cost allocation should assign each cleared line to exactly one route owner before any partner comparison begins (/tools/brief · DLR / webhook).
Was this guide helpful?
Related guides
- Route Failover Invoice Evidence Gates for Partner Comparison
Verify failover routes produce invoice evidence reconciling to the primary route, with consistent tax lines, credits, and delivery records before approving a partner switch.
- Route Failover Tax Attribution: Verify Split Billing Before Cutover
Verify failover tax mapping, cost-band consistency, and DLR/webhook evidence before approving a partner route comparison or cutover via the Decision Brief tool.
- Multi-Entity Sender ID Tax Treatment: Compare Route Compliance Before Launch
How to compare messaging and voice routes on tax-invoice treatment, sender-ID ownership, and reconciliation across multiple legal entities before you commit send volume.












