At a glance
Current Balance
Current Balance is the settled credit balance of the wallet. It changes when a transaction completes — for example, a top-up is paid, a manual debit is applied, or an invoice that draws from the wallet is finalized. It does not move while usage is accumulating during a billing period. Use Current Balance when you need a stable, audit-friendly number — for example in finance exports, reconciliation reports, or the wallet ledger.Ongoing Balance
Ongoing Balance is the real-time view of what the wallet has left after accounting for activity that has not yet settled. It starts from the Current Balance and subtracts:- Pending invoice amounts — invoices that are finalized but not yet paid and will draw from the wallet.
- Current period usage — usage events ingested in the active billing period that will be billed against the wallet.
Ongoing Balance is computed from real-time usage in ClickHouse. See Real-time balances and alerting for how freshness is guaranteed.
Which balance triggers alerts
Different alert and webhook events read different balances. Pick the event that matches the behavior you want.For a generic “wallet is running low” notification, use
wallet.ongoing_balance.dropped and pair it with wallet.ongoing_balance.recovered to close out the alert state. Use feature.wallet_balance.alert when you need per-feature thresholds inside a wallet.
