Skip to content

Balances

Shipped In the web app, the REST API and the MCP server.

When customers pay ahead (a wallet they top up, a pack of credits, prepaid usage), revenue and use are two different numbers. A balance is the gap between them: a running total for each customer of what went in, less what came out. It tells you how much you still owe in service, how much of it nobody is touching, and whether customers use what they buy.

In the app, open Analytics in the sidebar, then Balances. It runs inside Outflare and calls no third-party service. It works from your payments and the events your product sends (website tracking or the API), for payments and events that name a customer.

Each brand says what its balance is made of, and can have as many as it needs.

  • Goes in: every payment, only the payments for one product (such as a top-up), or a number on an event, such as the amount on a credit_granted event.
  • Comes out: a number on an event, such as the cost on a usage event, and refunds and chargebacks.
  • Runs out: never, or a number of days after the customer last topped up. After that their balance counts as nothing.
  • Counted in money, or another unit you name, such as credits or GB. A balance in another unit is made of events only.
  • Untouched after: how many days with nothing going in or coming out before a balance counts as untouched. The default is 90.

A customer never holds less than nothing: using more than they added leaves them at zero.

  • Held now is what customers have paid for and not used, with how many customers hold some and the median balance.
  • Untouched is the part held by customers whose balance has not moved for the days you set. It is money for service that may never be asked for, and a list of people worth a message.
  • Used in the last 30 days sits beside what came in over the same days. Use running ahead of top-ups means balances are draining.
  • Lasts about is how many days what customers hold now would last at the last 30 days’ rate of use. It shows a dash when nothing was used in those days.
  • Days between top-ups is the median time from one top-up to the same customer’s next.
  • The chart shows, month by month, what came in, what was used and what was held at the end of the month.
  • Split by shows who holds the balance. Pick a field of the customer or their company, such as plan or country, and a table lists what each group holds, its share, how many customers it has, their median balance and how much sits untouched. Click a group to list its customers below.
  • Biggest balances lists who holds the most, with when each last topped up and last used, linked to their record. Tick the box to see only the untouched ones. This needs permission to read customers.

Name it and press Save to open it again from the page or from All reports. On a dashboard, Add tile has Balance: the tile shows what is held now and the movement by month, whatever dates the dashboard is on.

Agents run it with run_balance and list who holds the most with list_balance_customers. Through the API it is POST /v1/brands/{brand}/insights/balance with in and out (parts of kind payment, event or refund), and optionally unit, expires_days, idle_days, a date_range and a breakdown (person:<field> or company:<field>), which adds groups to the answer. A money balance is in the currency’s minor unit (cents); a number on an event counts as whole units of the currency.