IOSOR Learn
Shared Wallet Pools: Debit Priority and Hold Arbitration Rules
How to rank, reserve, and settle competing sub-account debits on one shared balance, with the tie-break and hold-release rules that prevent silent starvation.
Lead Telecom & Routing Architect · Lausanne, CH
A shared pool needs a deterministic order: score every pending debit by class, age, and amount, reserve against remaining available balance only, and release holds on DLR or webhook expiry, never on optimism. Below is a defensible model for tenant, family, and brand pools.
Define debit classes and scoring before any traffic
Split incoming debits into three classes: guaranteed (transactional OTP, Verify-critical), contracted (scheduled campaigns with booked volume), and opportunistic (bulk sends). Score each request as class weight times age in minutes, tie-broken by smaller amount first, so a large hold cannot starve many small sends.
Reserve on available balance, never on total
Define available = total minus active holds minus in-flight reserved sends. Evaluate each new debit against available at the moment of admission, not against a cached snapshot. If two requests arrive in the same second, serialize them through one ledger write so the second sees the first reservation.
Write the hold arbitration table and timeout policy
Every hold needs an owner, a class, a created-at timestamp, and a hard expiry. Set expiry from the observable completion signal: DLR receipt for SMS, delivery-status webhook for messaging, call completion event for voice. If the signal arrives within latency budget, release in the next ledger cycle; if not, expire on the timer and log the miss. Never release a hold on a 'request accepted' webhook alone.
Publish tie-breaks, starvation guards, and dispute paths
Starvation is the failure mode users notice first. Add an aging boost so any sub-account that has waited past a threshold outranks new requests of the same class. Cap the number of holds a single sub-account can own at once, and publish that cap next to the spend limits in tenant wallet spending limits and allocations.
Test arbitration with dry-run and hold replay
Before enabling a shared pool, replay the last 30 days of debit rows in dry-run and compare rejections against actual outcomes. Confirm that recomputed available balances match recorded balances within one minor unit at every hour boundary. Verify webhook latency percentiles against the timeout policy, and confirm hold expiry fires within one cycle.
Start with IOSOR
Run a partner route comparison by job and cluster, then request proof: per-sub-account balance, hold, and debit semantics visible on the balance endpoint; DLR and webhook delivery with latency percentiles you can test; sender/template gates documented; hold expiry honoured by partner-side reconciliation. Do not commit a single route until two candidates return the same arbitration fields.
Related: PAYG hold before first debit · Wallet stop-lines before production.
IOSOR takeaway
Split incoming debits into three classes: guaranteed (transactional OTP, Verify-critical), contracted (scheduled campaigns with booked volume), and opportunistic (bulk sends). Verify webhook latency percentiles against the timeout policy, and confirm hold expiry fires within one cycle (/tools/brief · DLR / webhook).
Was this guide helpful?
Related guides
- balance reservation Release Latency vs Debit Settlement: Operational Comparison
Compare hold-release propagation against debit settlement across SMS, voice, and email routes to pick partners whose wallet semantics fit your cash-flow and failover needs.
- Wallet Reservation Ledger vs Settlement Lag: Audit and Partner Route Comparison
Audit reservation debits against settlement timing to stop double holds and false low-balance cutoffs, then compare partner routes for DLR and webhook latency.
- balance reservation Release Latency vs Debit Confirmation: Ops Audit
Audit whether your wallet releases authorization holds at the same cadence it confirms debits, and gate partner routes on latency, debit semantics, and reconciliation evidence.












