Skip to content
Developers

Plan and balance

How a plan's included usage and the balance pay for work, what top-up and automatic top-up need, and what happens when both run out.

A brand pays for its work in two places: the plan and the balance. Prices are never written here: read them with list_billing_plans, or as Markdown tables at https://otobiz.ai/pricing.md, and the brand's own numbers with get_billing include=meter.

How they connect

OrderWhat paysWhat it needs
1The plan's included usage for the monthA plan. Replies and sends need a plan. Pick a plan to start again; everything you set up is kept.
2The balance, once the included usage ran out ("Now using your balance")Money added by a top-up or automatic top-up
3Nothing: work pausesOne reason and one fix (below)
  • Included usage pays first, then the balance. When the included usage runs out, the brand is told once: usage now comes from the balance. It comes back when the month resets.
  • Top-up needs a live plan. Top-up comes with a paid plan. Pick a plan to add money. A trial has no top-up: subscribing is the one way on.
  • Automatic top-up needs a saved card and the brand's one monthly spending limit. Automatic top-up needs a saved card. Save one to turn it on.
  • The monthly spending limit caps what the balance pays. You've reached your monthly limit: everything is paused, your own replies too, until the month resets or you raise it. New messages still arrive.

When both run out

Work pauses with one reason and one fix. New messages still arrive, and everything set up is kept.

ReasonFixThe tool
No plan, or the trial endedPick a plancreate_billing_checkout kind: plan
The trial's usage is used upSubscribecreate_billing_checkout kind: plan
Usage and balance are used upAdd moneycreate_billing_checkout kind: topup
Automatic top-up is off for want of a cardSave a cardcreate_billing_checkout kind: card_setup
The monthly spending limit is reachedRaise it, or wait for the resetupdate_billing_settings spendCaps
The plan's payment failedUpdate the cardthe link in the refusal's details.paymentUrl

A refused call answers 402 with details.fix naming the fix and, where money is involved, details.paymentUrl. Give the person the link; never try to pay. After a payment link, call get_billing_checkout with wait=true.

Top-up refused

ReasonWhat the person reads
No live planTop-up comes with a paid plan. Pick a plan to add money.
The plan has no top-upYour plan doesn't include top-up. A higher plan does.
The plan's last payment failedYour plan's last payment didn't go through, so top-up is paused. Update your payment to turn it back on.
No saved card (automatic top-up)Automatic top-up needs a saved card. Save one to turn it on.

How it behaves

  • Nothing charges from a chat or an API call: a plan, a top-up and a saved card are each a link a person who manages billing (the owner, a Billing manager or an admin of every brand) opens and pays on the provider's page.
  • Changing automatic top-up is for the owner, a Billing manager or an admin of every brand; the spending limits are an owner's or admin's (update_billing_settings).
  • get_billing include=meter says where the brand stands in one line: what the plan used this month, then the balance, and whether work is paused with its fix.

If it fails

AnswerCauseFix
402 with details.fixThe plan, usage, balance or spending limit refused the workFollow details.fix; give the person details.paymentUrl
402 no_planA card link or top-up for a brand with no live plancreate_billing_checkout kind: plan first
402 no_card_on_fileAutomatic top-up turned on with no saved cardcreate_billing_checkout kind: card_setup

Try it on real customer chats

Connect Instagram, WhatsApp or any other channel and start replying today.