Skip to Content

Billing

Buy a credit top-up

Buys credit packs once, charged now. Top-up credits are spent after the plan’s monthly credits and are kept until used. During a free trial it ends the trial and charges the plan now, so it needs end_trial: true (billing_trial_running otherwise). Needs a subscription.

POST
/billing/credit-top-ups

Authorizations

Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
packsintegerrequired

How many credit packs to buy now.

Required range: 1 <= x <= 50

end_trialboolean

true to end a running free trial so the plan is charged now, which buying during a trial needs (billing_trial_running otherwise); see the quote for the amount.

Response

application/json

Success

payment_urlstring | nullrequired

The checkout page to open when a card must be added first; null when the change is already made.