curl --request PUT \
--url https://intentleads.si/api/v1/billing/auto-topup \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"enabled": true,
"amount": 500,
"threshold": 50
}
'
{
"enabled": true,
"amount_usd": 500,
"threshold_usd": 50,
"triggers": {
"low_balance": true,
"billing_day": true
},
"billing_day_by": "auto",
"amount_choices_usd": null,
"paused": null,
"paused_at": null,
"card": {
"brand": "visa",
"last4": "4242"
},
"last": {
"trigger": "low_balance",
"amount_usd": 500,
"status": "paid",
"at": "2026-11-20T09:14:02.000Z",
"paid_at": "2026-11-20T09:14:04.000Z",
"invoice_url": "https://invoice.example.com/i/acct_1/in_1",
"error": null
}
}
Set the automatic top-up
Adds amount US dollars ($250 or more) by card when the available balance drops below threshold, and on the billing day once a month. Each automatic top-up has its own invoice. {"enabled": false} turns it off.
- No card on file:
409 card_requiredwith acard_setup_url. Add the card there; the automatic top-up switches on with these settings once it’s saved. - A failed payment pauses automatic top-ups (
paused: payment_failed) until a new card is added or the invoice is paid. The low-balance top-up runs at most 5 times a billing month (paused: monthly_cap); saving the settings again resumes it. - An older monthly card payment (250,500, 1,000or2,000) is the billing-day part:
amountmust be one of those, and"low_balance": falsekeeps only the monthly payment.
Admin key required. Standard keys get 403 admin_key_required.
PUT
/
api
/
v1
/
billing
/
auto-topup
curl --request PUT \
--url https://intentleads.si/api/v1/billing/auto-topup \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"enabled": true,
"amount": 500,
"threshold": 50
}
'
{
"enabled": true,
"amount_usd": 500,
"threshold_usd": 50,
"triggers": {
"low_balance": true,
"billing_day": true
},
"billing_day_by": "auto",
"amount_choices_usd": null,
"paused": null,
"paused_at": null,
"card": {
"brand": "visa",
"last4": "4242"
},
"last": {
"trigger": "low_balance",
"amount_usd": 500,
"status": "paid",
"at": "2026-11-20T09:14:02.000Z",
"paid_at": "2026-11-20T09:14:04.000Z",
"invoice_url": "https://invoice.example.com/i/acct_1/in_1",
"error": null
}
}
Authorizations
Body
application/json
Response
The automatic top-up after the change.