Events
credits.granted
Non-purchase credits were granted to a subscription.
When this fires
Plan-included credits are granted at the start of every billing period (reason: "period_reset"), and manual adjustments from the dashboard grant purchased credits (reason: "manual_adjustment"). Purchases through the API, automatic top-ups, or the customer portal fire credits.purchased instead.
The idempotency key is derived from the billing operation that granted the credits, so engine retries never send a duplicate.
Use it to reset in-app usage meters at the start of a period or to confirm a support-driven credit grant reached the customer.Body
application/json
Response
200
Return any 2xx status code to acknowledge receipt of the event.