Wallet
Get wallet
Your spendable balance in rupees (and balance_paise). It never goes negative. Calls are billed in 10-second blocks, rounded up, and only for calls that connected.
The balance is what you can spend now, after everything held back:
reserved_for_renewals_*: number renewals set aside ahead of time, when the renewal reserve is on (see Get wallet settings).held_for_calls_*: the worst case of calls running now, held before each call starts and settled when it ends.
renewal_reserve repeats the reserve setting. With a Mirai-Workspace header naming a brand, the answer is your account’s wallet plus spend, that brand’s spend against its spending limit (Sub-workspaces folder).
Poll it on a schedule and alert yourself below a day’s worth of traffic. Finding out from a 402 in the middle of a campaign is worse.
Get wallet