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.

Oleksandr (Alex) Petukhov — IOSOR Telecom Expert
✓ Verified by IOSOR ExpertOleksandr (Alex) Petukhov

Lead Telecom & Routing Architect · Lausanne, CH

IOSOR Expert · Q&A

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.

⚡ IOSOR Expert · Q&A · Verified partners (×44)

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

VERIFIED BY IOSOR EXPERT · B2B ROUTING, SLA & PROVIDER Q&A

IOSOR Expert — Verified Q&A & B2B Messaging Decisions

Every Q&A decision below is audited by the IOSOR Telecom Architecture Expert against live 90-day uptime telemetry, carrier compliance rules (10DLC, DLT, GDPR), and real partner TCO.

All Q&A Triggers
#01 · Compliance & Sender ID📖 Knowledge hub · US A2P / 10DLC

US A2P / 10DLC

“Why do US 10DLC TCR campaigns get rejected and which partner handles fast onboarding?”

✓ Verified by IOSOR Expert

10DLC brand and campaign programs for US A2P traffic — not general privacy compliance.

All Q&A Triggers
#02 · OTP & verification📖 Knowledge hub · India DLT

India DLT

“How do engineering teams prevent India TRAI DLT template scrubbing drops on OTPs?”

✓ Verified by IOSOR Expert

DLT and PE-TM registration for India A2P — not an India corridor coverage guide.

All Q&A Triggers
#03 · OTP & verification📖 Knowledge hub · Verify / OTP

Verify / OTP

“How do we eliminate OTP p95 timeout spikes and trigger a 20–30s multi-rail fallback?”

✓ Verified by IOSOR Expert

Login codes without chaos: abuse, latency, and cost control.

All Q&A Triggers
#04 · Transactional email📖 Knowledge hub · Email

Email

“Why do password reset and 2FA emails land in Spam when sharing bulk marketing IPs?”

✓ Verified by IOSOR Expert

Transactional email alongside SMS, voice, and WhatsApp in one routing architecture.

All Q&A Triggers
#06 · WhatsApp Business📖 Knowledge hub · WhatsApp & RCS

WhatsApp & RCS

“How do Meta per-conversation fees and template pauses impact WhatsApp Business TCO?”

✓ Verified by IOSOR Expert

Rich channels when profiles and templates are ready: honest setup.

All Q&A Triggers
#08 · Failover & backup routing📖 Knowledge hub · Failover & rails

Failover & rails

“How do we keep a second standby provider warm for failover at $0/month idle cost?”

✓ Verified by IOSOR Expert

Ordered backup paths when a primary rail fails - distinct from DLR status truth.

All Q&A Triggers