> ## Documentation Index
> Fetch the complete documentation index at: https://docs.botflow.cc/llms.txt
> Use this file to discover all available pages before exploring further.

# Billing

> Topping up the balance in USDT-TRC20, spending on tokens, bot operation and Telegram accounts, daily limits and the charge history.

A company's balance is topped up in USDT over the TRON network (TRC-20). Spending on tokens (AI operator replies,
photo recognition and message translation) and on running bots and Telegram accounts on the platform is charged from the balance. The section lives in
"Settings" → "Payments" → "Billing". The balance is held in dollars and topped up in crypto at the current rate.

> [!NOTE]
>
> The company owner or an admin with billing access can top up the balance and request a refund. Billing access
> comes with the "Billing" toggle described in [Administrator capabilities](https://docs.botflow.cc/en/settings.md#administrator-capabilities).
> An admin without it sees "Billing is available to the company owner and to admins with billing access." on this
> page. For operators and members without administrator rights the section is hidden.

## Topping up the balance

**1. Open «Billing» and press «Top up»**

"Settings" → "Payments" → "Billing". The "Top up" button opens the top-up dialog.

**2. Enter the amount**

The "Amount (USD)" field. The minimum top-up is \$50. Press "Create invoice" and a payment page with the invoice opens.

**3. Confirm the network**

Before showing the address the page asks you to confirm that you are sending USDT over the TRON (TRC-20) network. Press the confirmation button to reveal the address.

**4. Send USDT to the address**

The page shows a QR code, the payment address, the amount in USDT and the network. Transfer exactly the stated amount to that address from your wallet or from an exchange.

**5. Wait for the credit**

The status on the page updates automatically. Once the required number of network confirmations is reached the balance is topped up and the page can be closed.

> [!WARNING]
>
> Send only USDT on the TRON (TRC-20) network. Choosing another network or coin will result in a loss of funds. Copy
> the address and the amount with the button on the page rather than typing them by hand.

### Invoice statuses

The payment page shows the current status and, until the transfer arrives, a countdown to the invoice's expiry.

| Status | What it means |
| - | - |
| Awaiting payment | The invoice is created, the transfer has not arrived yet. |
| Confirming | The transfer has been received and is being confirmed; while the network collects confirmations, the page shows their number. If this takes more than a day, write to support. |
| Confirmed | The funds are credited to the balance. |
| Received less than the amount | Less than expected arrived. The balance is topped up by the amount actually received; pay the rest to the same address while the invoice page shows the address. |
| Expired | The invoice's time ran out. |

> [!NOTE]
>
> Don't pay an expired invoice: send nothing else to its address and create a new invoice. If you already sent the
> transfer and the invoice expired in the meantime, the transfer will be credited; if your balance isn't topped up
> within a day, write to support. A company can have up to 5 unpaid invoices at a time and no more than 10 unpaid
> invoices in 24 hours, so don't create a new one while an old one is still awaiting payment.

## Promo codes

Next to the "Top up" button there is a "Promo code" field. Enter the code, press "Apply", and the code's amount is
credited to the balance. After applying you get a confirmation message, and a "Promo credit" row appears in the
transaction history.

## What the balance is spent on

Two categories of spending are charged from the balance:

* **Tokens.** AI operator replies to subscribers, recognition of the photos they send and message translation are
  charged: every AI reply, every recognised photo and every translation reduces the balance. More about the AI itself in [AI operator](https://docs.botflow.cc/en/ai-operator.md).
* **Running bots and Telegram accounts on the platform.** By the formula on the balance card:
  `$0.50 / bot / day + $1.00 / Telegram account / day + $0.05 / 1k messages`.
  The bot fee is charged per active bot per day, the Telegram account fee per connected Telegram account. Messages
  are counted both ways: incoming from subscribers and outgoing from bots, and for Telegram accounts incoming ones
  and the ones sent from BotFlow.

The "Current balance" card shows the amount in dollars and the charging formula. The card shows the Telegram
account price when Telegram accounts are available to the company.

### Telegram accounts

What the payment for a [Telegram account](https://docs.botflow.cc/en/telegram-accounts.md) includes:

* **Rent.** \$1 a day per connected Telegram account, including one with sending paused, a restricted one and a
  frozen one. Rent is counted for the time the Telegram account is connected: a disconnected or deleted one is not
  paid for.
* **Messages.** At the same price as for bots: incoming ones and the ones sent from BotFlow. Messages that were
  not sent are not paid for.
* **Free.** Messages sent from the phone or from other Telegram apps, history loaded from Telegram, calls and chat
  events, and incoming messages that arrived while the company was stopped.

The rent and messages of Telegram accounts are charged together with the rent and messages of the bots, in the
same "Usage charge" rows of the [transaction history](#transaction-history).

Telegram accounts can be connected when there is money on the balance, wherever it came from: a top-up, a promo
code, a bonus or a promo credit. For a company with no money on its balance, a top-up of \$50 or more opens connecting.

> [!WARNING]
>
> When the balance is exhausted, the connection of Telegram accounts holds for 15 more minutes, so a payment a
> minute late doesn't interrupt anything. Then the Telegram accounts become "Stopped": messages don't come in or go
> out, and no rent is charged. After 30 days without payment BotFlow ends its session in the Telegram accounts, and
> the card shows "Disconnected for non-payment". The chats are kept, and after a top-up the company owner or an
> administrator can connect the Telegram account again.

### Token spending

The 30-day spending card shows the charges for tokens: what was charged over 30 days, the number of AI replies, the
token count and a breakdown by bot (the "Charged" and "Replies" columns). The "Accrued (not yet charged)" row shows
the current period's spending, which will be part of the next charge.

## Daily AI spending limit

The daily spending limit caps how much can be spent on AI per day: replies, photo recognition and message
translation. It is set at two levels.

> [card] For the whole company
>
> "Settings" → "Company", the "Daily AI budget (whole company)" field. It caps the total AI charges across every bot per day.

> [card] For a single bot
>
> The "AI Settings" page of the bot you need, the "Daily AI budget (this bot)" field. It caps that bot's AI charges only.

Under each field you see what has been spent today and how much is left until the limit. Once the daily limit is
reached the AI operator stops answering until midnight UTC and continues the next day. An empty field means no
limit. If both limits are set, the AI stops on whichever is reached first: the bot hitting its own budget or the
company hitting the shared one.

> [!NOTE]
>
> The limit covers AI operator replies only. The other funnel blocks (messages, buttons, delays) keep working even
> while the AI is paused. Budgets are changed by the company owner or an administrator, and the shared budget sits
> in [Settings](https://docs.botflow.cc/en/settings.md).

## Transaction history

The "Transaction history" card shows the last 50 balance operations. The columns are "Time", "Type", "Description",
"Amount USD" and "Balance after". Top-ups and credits are marked with a plus, charges go in minus, so the "Balance
after" column is convenient for checking how the balance changed.

| Type | What it means |
| - | - |
| Top-up | A credit after an invoice was paid. |
| Promo credit | A credit from a promo code. |
| Usage charge | Payment for tokens (AI replies and translation), for running bots and Telegram accounts. |
| Refund | Funds returned to the balance. |
| Adjustment | A balance change following your request to support. |
| Annual prepay bonus | A credit for paying a year upfront. |
| Affiliate payout, Affiliate bonus | Credits from the referral program. |

## Refunding the balance

To get an unused balance back, write to support and state the amount and the USDT-TRC20 address for the transfer.
The request is reviewed before the funds are sent.

## Referral program

Invite clients through your link and earn a commission from their spending on the platform. The referral area opens
from the profile menu: your link, statistics on the people you invited and withdrawal of the accumulated commission
in USDT. More in [Referral program](https://docs.botflow.cc/en/referral.md).

## What's next

> [card] [AI operator](https://docs.botflow.cc/en/ai-operator.md)
>
> How the AI works and which replies the balance is charged for.

> [card] [Referral program](https://docs.botflow.cc/en/referral.md)
>
> Your link, the commission from your referrals' spending and withdrawal in USDT.

> [card] [Team and settings](https://docs.botflow.cc/en/settings.md)
>
> The company's general settings and the daily AI budget for the whole company.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.