Skip to main content

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
id
string
required
event
string
required
Allowed value: "credits.granted"
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.