{
"type": "billing.auto_topup_succeeded",
"data": {
"customer_id": "cus_123",
"feature_id": "messages",
"quantity_granted": 100,
"threshold": 20,
"balance_after": 115,
"invoice_mode": false,
"invoice": {
"stripe_id": "in_1A2B3C4D5E6F7G8H",
"status": "paid",
"total": 1000,
"currency": "usd",
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_123/test_456"
}
}
}Billing
Auto Top-Up Succeeded
Fired when an automatic top-up grants additional prepaid balance.
WEBHOOK
billing.auto_topup_succeeded
{
"type": "billing.auto_topup_succeeded",
"data": {
"customer_id": "cus_123",
"feature_id": "messages",
"quantity_granted": 100,
"threshold": 20,
"balance_after": 115,
"invoice_mode": false,
"invoice": {
"stripe_id": "in_1A2B3C4D5E6F7G8H",
"status": "paid",
"total": 1000,
"currency": "usd",
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_123/test_456"
}
}
}Payload Fields
The ID of the customer whose balance was topped up.
The feature ID that was automatically topped up.
The normalized amount of balance granted by the top-up.
The configured balance threshold that triggered the top-up.
The customer’s remaining balance for the feature after the top-up.
Whether the auto top-up created a send_invoice invoice instead of auto-charging.
The invoice created for the auto top-up.
Show properties
Show properties
The Stripe invoice ID. Use this as a stable dedupe key.
The status of the invoice. “paid” for auto-charged top-ups; “open” for invoice-mode top-ups where credits were granted but the invoice has not yet been paid.
The total amount of the invoice in the smallest currency unit (e.g. cents for USD), matching Stripe’s invoice.total.
The ISO currency code for the invoice.
URL to the hosted invoice page, if available.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
The webhook event type.
Allowed value:
"billing.auto_topup_succeeded"Show child attributes
Show child attributes
Example:
{
"customer_id": "cus_123",
"feature_id": "messages",
"quantity_granted": 100,
"threshold": 20,
"balance_after": 115,
"invoice_mode": false,
"invoice": {
"stripe_id": "in_1A2B3C4D5E6F7G8H",
"status": "paid",
"total": 1000,
"currency": "usd",
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_123/test_456"
}
}Response
200
Webhook received successfully.
⌘I