IOSOR Learn
Submit API Acceptance vs DLR Finality Gaps
Reconcile immediate API acceptance codes with delayed DLR outcomes to prevent false-success assumptions and validate partner route alignment.
Lead Telecom & Routing Architect · Lausanne, CH
Operators often treat HTTP 202 or provider-specific 'accepted' codes as delivery confirmation, yet final DLR states — delivered, failed, expired — arrive minutes to hours later via webhook. This gap creates false-success metrics, billing disputes, and suppressed retry logic. The job is to map each provider's submit-time semantics to its actual DLR finality window and enforce reconciliation before reporting or charging.
Submit-Time Code Taxonomy
Classify every API response: 200/202 = queued, 4xx = client error (invalid payload, sender blocked), 5xx = upstream degradation. Tag each with provider, channel, and template namespace. Do not collapse 202 into 'sent' — store as 'submitted' with a correlation ID for later DLR join. Enforce a 5-second submit-time timeout; responses beyond it are treated as pending, not accepted.
DLR Finality Window Definition
For each partner route, measure the 95th-percentile latency from submit to terminal DLR (delivered/failed/expired). Document the window in seconds; typical ranges: 30–120 s for Tier-1 direct, 120–600 s for aggregator hops. Any DLR arriving outside the window is 'late' and triggers an audit flag. Verify webhook HMAC signatures on receipt; discard unsigned payloads.
Webhook Idempotency & Ordering
DLR webhooks can arrive out of order or duplicated. Enforce idempotency keys (provider_message_id + status) and persist a state machine: submitted → buffered → terminal. Reject transitions that skip states. Log latency buckets per provider for SLA dashboards. Handle edge cases where a 'failed' DLR precedes a late 'delivered' — retain the first terminal state and ignore subsequent transitions.
Sender & Template Gate Alignment
Some providers accept a submit for a sender/template combo that later fails DLR due to registry rejection or DLT mismatch. Pre-flight validate sender registration and template approval status via partner APIs before submit. Cache results with TTL matching registry propagation delays. Reject submits for unregistered senders with a 409 before provider handoff.
Reconciliation Job & Alerting
Run a nightly batch: join submit logs with terminal DLRs on correlation ID. Flag records stuck in 'submitted' beyond the 99th-percentile window. Emit alerts to on-call with provider, corridor, and sample message IDs. Feed discrepancies into partner route comparison.
Start with IOSOR
Compare verified partner routes for your channel and corridor using the Decision Brief to see which providers align submit-time acceptance with DLR finality semantics. Cross-reference DLR Finality Gate Before Suppression, DLR Finality Window Calibration, and Async Status Finality Gaps for gate logic and calibration details.
IOSOR takeaway
Classify every API response: 200/202 = queued, 4xx = client error (invalid payload, sender blocked), 5xx = upstream degradation. Feed discrepancies into partner route comparison (/tools/brief · DLR / webhook).
Was this guide helpful?
Related guides
- Suppression List Error Code Precedence: Audit Before Route Comparison
Resolve which code wins when suppression, upstream provider error, and channel rejection collide, then compare partner routes whose error contracts match your governance.
- Detecting Failover Route Drift in Error-Reference Code Contracts
How ops teams verify that failover routes preserve error-reference semantics after provider or corridor changes, using partner route comparison to prove error-code parity.
- Carrier Maintenance Windows: Mapping Error Codes to Failover Decisions
Classify carrier error codes as maintenance-window, true route failure, or ambiguous deferral, then choose failover vs retry with verification criteria.












