{
"messageId": "c4093989-d7e7-429a-b13c-f90ffdf5ee49",
"traceId": "f1ab6814-e858-411d-9482-03a26cdd03b4",
"timestamp": "2026-01-21T15:30:00.000Z",
"type": "credit_balance.depleted",
"customer": {
"id": "customer-b2b94b",
"name": "Acme Corp",
"billingId": "cus_Tpi55JrRDSuEvs"
},
"creditCurrency": {
"id": "cred-type-ai-tokens",
"name": "AI Tokens",
"description": "Tokens used for AI features",
"unitLabel": {
"singular": "token",
"plural": "tokens"
}
},
"totalGranted": 5000,
"remainingBalance": 0,
"consumedPercentage": 100,
"eventId": "1617e820-98c9-4ffa-b4e0-748200a03dd0"
}Credit balance
Credit balance depleted
Fired when the credit balance reaches zero. Use to halt consumption, enforce hard limits, or prompt a top-up flow.
WEBHOOK
credit_balance.depleted
{
"messageId": "c4093989-d7e7-429a-b13c-f90ffdf5ee49",
"traceId": "f1ab6814-e858-411d-9482-03a26cdd03b4",
"timestamp": "2026-01-21T15:30:00.000Z",
"type": "credit_balance.depleted",
"customer": {
"id": "customer-b2b94b",
"name": "Acme Corp",
"billingId": "cus_Tpi55JrRDSuEvs"
},
"creditCurrency": {
"id": "cred-type-ai-tokens",
"name": "AI Tokens",
"description": "Tokens used for AI features",
"unitLabel": {
"singular": "token",
"plural": "tokens"
}
},
"totalGranted": 5000,
"remainingBalance": 0,
"consumedPercentage": 100,
"eventId": "1617e820-98c9-4ffa-b4e0-748200a03dd0"
}Body
application/json
Available options:
credit_balance.depleted Unique webhook message ID for idempotency.
Time the event was generated.
Customer whose credit balance was depleted.
Show child attributes
Show child attributes
Credit currency (type) that was depleted.
Show child attributes
Show child attributes
Sum of all grants in the pool at event time.
Remaining balance at event time (will be 0 at depletion).
Correlation ID for tracing.
Unique ID of the underlying event that triggered this webhook.
How much of the total granted has been consumed (will be 100 at depletion).
