Skip to main content

When this fires

Plan credits expire at the end of each billing period: the period reset discards whatever remained and grants the new period’s credits (which fires credits.granted). This event reports the discarded amount. Purchased credits never expire and are not affected. It only fires when there was something to discard — a customer who used all plan credits gets no credits.expired. Use it for end-of-period usage summaries (“you left 120 credits on the table”).

Body

application/json
id
string
required
event
string
required
Allowed value: "credits.expired"
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.