Sub-workspaces
Get a sub-workspace's spend
What one brand’s calls have spent against its spending limit, by its id or external_id.
used_*: settled call charges in the period.held_*: the worst case of calls running now.remaining_*: the limit minus used minus held, never below 0.period_start/period_end: the calendar month counted, in the brand’s timezone (end exclusive), or null for a lifetime limit.state:ok,warning(80% used),reached(spend at or above the limit, or nothing left) orunlimited.
Without a limit, spend_limit, period, remaining_* and percent_used are null and state is unlimited, but the month is still counted: used_* and held_* are this calendar month’s.
Counting starts from the release that added limits; earlier calls aren’t counted. A request with the brand in Mirai-Workspace reads the same object as spend on GET /v2/wallet.
Get a sub-workspace's spend