Skip to main content

When this fires

When a customer buys a credit pack or a chosen quantity of credits through the API, an automatic top-up, or the customer portal, and the payment succeeds. Purchased credits never expire — unlike plan credits, they survive period resets. Plan-included credits granted at each period reset fire credits.granted instead. Use it to confirm top-up purchases in your own UI or analytics.

Body

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