Events
credits.low
Remaining credits dropped below 10% of the period grant.
When this fires
The async usage processor watches every credit deduction. When a batch of usage moves the remaining credits (plan plus purchased) from above to at-or-below 10% of the credits granted at the last period reset, this event fires once. It does not re-fire while the balance stays low, and the next period reset re-arms it. If a single burst of usage jumps straight past zero, onlycredits.depleted fires.
Use it to prompt the customer to buy a credit pack before they hit zero.Body
application/json
Response
200
Return any 2xx status code to acknowledge receipt of the event.