Events
credits.depleted
A subscription ran out of credits.
When this fires
The async usage processor fires this once when a deduction moves the credit balance from positive to zero. From this point, usage requests that need more credits than remain are rejected withinsufficient_credits.
customer.state_changed fires alongside it with trigger credits_depleted, carrying the customer’s full current entitlement state.
Use it to block gated features in your app and drive the customer to a credit pack purchase.Body
application/json
Response
200
Return any 2xx status code to acknowledge receipt of the event.