Set the monthly top-up
curl --request POST \
--url https://intentleads.si/api/v1/billing/plan \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"plan": "starter"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({plan: 'starter'})
};
fetch('https://intentleads.si/api/v1/billing/plan', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://intentleads.si/api/v1/billing/plan"
payload = { "plan": "starter" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"plan": "growth",
"status": "checkout",
"checkout_url": "https://checkout.example.com/session/7f3c2a9e"
}
Set the monthly top-up
A monthly card payment added to your balance on each renewal: starter (250),‘growth‘(500), scale (1,000)or‘partner‘(2,000). {"amount": 500} works too.
- None yet: returns
status: checkoutand acheckout_url. Passemailto prefill it. - Paid by card: changes the amount from the next renewal (
status: changed); nothing is charged now. - Otherwise:
202withstatus: pending_confirmation; we confirm by email.
Cancel it, and see invoices and your card, with POST /api/v1/billing/portal.
Admin key required. Standard keys get 403 admin_key_required.
POST
/
api
/
v1
/
billing
/
plan
Set the monthly top-up
curl --request POST \
--url https://intentleads.si/api/v1/billing/plan \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"plan": "starter"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({plan: 'starter'})
};
fetch('https://intentleads.si/api/v1/billing/plan', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://intentleads.si/api/v1/billing/plan"
payload = { "plan": "starter" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"plan": "growth",
"status": "checkout",
"checkout_url": "https://checkout.example.com/session/7f3c2a9e"
}
Authorizations
Body
application/json