Skip to main content

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 with insufficient_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
id
string
required
event
string
required
Allowed value: "balance.depleted"
timestamp
string
required
organizationId
string
required
mode
enum<string>
required
Available options:
live,
sandbox
apiVersion
string
required
data
object
required

Response

200

Return any 2xx status code to acknowledge receipt of the event.