IOSOR Learn
Sub-Account Webhook Payload Enrichment Consistency
Ensure every sub-account webhook delivers identical enriched fields — carrier, price, latency tags — so billing and analytics stay accurate; compare partner payload guarantees via Decision Brief.
Lead Telecom & Routing Architect · Lausanne, CH
Verify that every sub-account webhook emits the same enriched payload — carrier name, per-message price, latency buckets, and DLR status codes — so downstream billing engines and analytics pipelines never drift. Missing or divergent fields break reconciliation and inflate dispute rates.
Enrichment Field Contract
Define a canonical JSON schema: carrier_id (string), price_usd (float, 6 decimals), latency_ms (int), dlr_status (enum), timestamp_iso (UTC). Every partner route must populate all five fields on every webhook; optional fields are forbidden. Schema version is pinned in the webhook header X-Enrichment-Version.
Carrier Resolution Determinism
Carrier lookup must resolve to the same canonical carrier_id for a given destination E.164 prefix across all partner routes. Cache TTL is 24 hours; cache misses trigger a synchronous enrichment call that must complete within 150 ms or the webhook is rejected with 422. Log every cache miss for weekly audit.
Price Precision And Rounding
Price_usd uses the partner's contracted MRC per destination prefix, stored in the routing table at 6-decimal precision. Rounding occurs only at invoice generation, never at webhook emission. Any partner that returns price with fewer decimals is flagged for contract review.
Latency Tagging SLA
Latency_ms measures partner round-trip from submit to DLR receipt. Buckets: <200, 200-500, 500-1000, >1000 ms. Webhooks exceeding 1000 ms carry a degradation flag. Partners with >5% degradation over a rolling 7-day window enter remediation.
DLR Status Mapping Completeness
Every partner DLR code maps to the canonical enum: delivered, failed, expired, rejected, unknown. Unmapped codes default to unknown and trigger an alert. Mapping tables are versioned and deployed atomically with webhook schema version.
Start with IOSOR
Run the Decision Brief to compare verified partner routes on enrichment SLA, schema versioning, and cache-miss rates for your corridor: Compare partner routes. Checklist: 1) Confirm X-Enrichment-Version header on live webhooks. 2) Validate carrier_id consistency across 10k sample messages per partner. 3) Audit price_usd decimal precision against contract MRC. 4) Measure latency bucket distribution. 5) Verify DLR mapping coverage >=99.9%. Related: Sub-Account Webhook Endpoint Isolation Strategies, Sub-Account Webhook Signature Verification Policy, Sub-Account Carrier DLR Status Mapping Standardization.
IOSOR takeaway
Define a canonical JSON schema: carrier_id (string), price_usd (float, 6 decimals), latency_ms (int), dlr_status (enum), timestamp_iso (UTC). Mapping tables are versioned and deployed atomically with webhook schema version (/tools/brief · DLR / webhook).
Was this guide helpful?
Related guides
- Sub-Account Webhook Signing Secrets: Isolation and Rotation Gates
Verify per-sub-account webhook signing secrets stay isolated, rotatable, and auditable without cross-tenant leakage, then compare partner routes via the Decision Brief.
- Sub-Account Sender ID Registry Conflicts: Resolve Before Route Selection
Detect and resolve alpha-tag collisions across sub-accounts before provisioning routes, so carrier rejection and DLR ambiguity never reach production traffic.
- Sub-Account Sender ID Registration and Ownership Verification Gate
Ops gate for sub-account sender ID registration: verify carrier validity, ownership attestation, and collision-free routes before enabling outbound SMS.












