Events
balance.depleted
A subscription ran out of prepaid balance.
When this fires
The async usage processor fires this once when a deduction moves the prepaid balance from positive to zero or below. On plans that block on exhaustion, further usage is rejected withinsufficient_balance; otherwise the balance goes negative and usage continues.
customer.state_changed fires alongside it with trigger balance_depleted.
Use it to cut off gated features or push an urgent top-up flow.Body
application/json
Response
200
Return any 2xx status code to acknowledge receipt of the event.