Billing statements New
See where your balance went: spend by day, product, host and gift, your balance over time, how long it lasts, and a statement for every month.
In every account. These are read-only views of your prepaid balance: nothing here changes what you are billed. The same numbers are in your console and in the API.
No server needed to see any of this: the console shows all of it. The two API routes are for your own server, if you have one. They are server-only: your account's money is never available from an app, so the App Key (Quick mode) cannot reach them.
Set in your dashboard vs. set in code
| Setting | Where |
|---|---|
| Monthly statement email | Dashboard: Console, on the statement page (owners and billing users) |
| Low-balance alert level used by the forecast | Dashboard: Console → Settings |
| Daily spend cap of a project | Dashboard: Console → Projects |
| Period, product and line type of a statement | Code: from, to, product, kind in the request (or the filters in the console) |
In your console: Where your money went
One page in your console answers “where did my balance go?” for any period up to a year. Every chart has a table with the same numbers, and every table downloads as CSV.
| View | What it shows |
|---|---|
| Daily spend | A bar for every day, split by product, with the money that came in on the same chart. |
| Spend by product | Video and audio calls, Live Hosts, gifts, live streams and chat, each with its amount and minutes. |
| Top hosts and gifts | The hosts you spent the most on and the gifts your users sent most. For Live Hosts calls and gifts you also see what you charged your users and what you keep. |
| Balance over time | Your balance at the end of every day, with recharges set against spend by day, week or month. |
| Low-balance forecast | How long your balance lasts at the current rate (“about 16 days”), and when it reaches your low-balance alert level. |
| Monthly statement | Every line of the month with its product, host, end user, time or count, rate, amount and the balance after it. Download it as CSV or PDF, or get a monthly email. |
- Amounts are in your billing currency: ₹ on a rupee account, $ on a USD account. They are shown with 2 decimals; the CSV keeps the full number, so rows always add up to the totals.
- Days are the days of your account’s time zone.
- In calls right now. A call, a viewer session or a stream that is still running takes money from your balance as it goes, and its statement line is written when it ends. The page shows that amount beside your balance (“in calls right now”) until the line exists.
- Hosts are shown by display name and host ref only.
- What you charged and what you keep are shown where we know them: for Live Hosts calls (your price for the call) and for gifts (your price for the gift). For other products the column is empty, which means “not known here”, not zero.
The low-balance forecast
The forecast tells you how long your balance lasts at the current rate, for example “about 16 days at the current rate”, and when it reaches your low-balance alert level (console → Settings). It is an estimate:
- The rate is your average daily spend over the last 7 days (for a newer account, over the days it has existed). If one day of the week holds most of the week’s spend on an account with at least 14 days of history, the 30-day average is used instead, and the page says so.
- It reads finished statement lines only, so a call that has been running for an hour counts once it ends.
- No spend yet means no forecast (“No spend yet”); a balance of zero shows “Balance is used up”.
To act on a low balance automatically, use the balance.low webhook.
Monthly statements and the monthly email
The console lists every month with activity (the last 36 months) with its opening balance, money in, money out and closing balance. Open a month to see every line, or download it as CSV or PDF. One month’s closing balance is always the next month’s opening balance.
The monthly statement email is off until you switch it on (console, on the statement page). Owners and billing users can switch it on for themselves. In the first days of each month it sends last month’s summary (opening, money in, money out, closing, number of lines) and a link to the statement in your console. The figures stay behind your sign-in: there is no attachment. A month with no activity sends nothing.
From your server (optional, server-only)
Base URL https://api-videosdk.titliapp.com, HTTP Basic auth with a project key, like the rest of /v1 (see Authentication). Like GET /v1/balance, these answers are about your whole account, not one project.
# Where your money went in October (days are in your account's time zone)
curl -s "https://api-videosdk.titliapp.com/v1/money/overview?from=2026-10-01&to=2026-10-31" -u "$KEY_ID:$KEY_SECRET"
# One table of it as CSV: by_product, daily, balance_series, top_hosts, top_gifts or recharges_vs_spend
curl -s "https://api-videosdk.titliapp.com/v1/money/overview?from=2026-10-01&to=2026-10-31&format=csv&table=daily" -u "$KEY_ID:$KEY_SECRET" -o daily.csv
# The October statement: JSON pages (newest first), or the whole month as CSV or PDF (oldest first)
curl -s "https://api-videosdk.titliapp.com/v1/money/statement?from=2026-10-01&to=2026-10-31&limit=100" -u "$KEY_ID:$KEY_SECRET"
curl -s "https://api-videosdk.titliapp.com/v1/money/statement?from=2026-10-01&to=2026-10-31&format=csv" -u "$KEY_ID:$KEY_SECRET" -o statement-2026-10.csv
curl -s "https://api-videosdk.titliapp.com/v1/money/statement?from=2026-10-01&to=2026-10-31&format=pdf" -u "$KEY_ID:$KEY_SECRET" -o statement-2026-10.pdf
# Only the Live Hosts lines of the month
curl -s "https://api-videosdk.titliapp.com/v1/money/statement?from=2026-10-01&to=2026-10-31&product=live_hosts_auto" -u "$KEY_ID:$KEY_SECRET"from and to are days (YYYY-MM-DD, both included) in your account’s time zone. Without them you get the last 30 days up to today. A range can be at most 366 days.
Overview
/v1/money/overviewQuery: from, to; format=csv with table = by_product, daily, balance_series, top_hosts, top_gifts or recharges_vs_spend for one table as CSV.
| Parameter | Type | Required | Default | Allowed values | What it means | Example |
|---|---|---|---|---|---|---|
from | string (day) | optional (query) | 29 days before <code>to</code> | YYYY-MM-DD, not after to; at most 366 days in all | First day, included, in your account's time zone. | 2026-10-01 |
to | string (day) | optional (query) | today | YYYY-MM-DD | Last day, included. | 2026-10-31 |
format | string | optional (query) | json | json, csv | The whole answer as JSON, or one table as CSV. | csv |
table | string | required with format=csv | – | by_product, daily, balance_series, top_hosts, top_gifts, recharges_vs_spend | Which table you want as CSV. | daily |
| Field | Type | What it means |
|---|---|---|
currency, timezone | string | Your billing currency and time zone. |
from, to, days, generated_at | string, string, integer, string | The range, its number of days, and when the answer was made. |
balance | object | current (live balance) and ledger (sum of statement lines). |
pending_usage | object | Money taken by what is still running, by product. |
opening_balance, closing_balance | number | Balance before and at the end of the range. |
totals | object | spend, recharges, credits, net, credits_by_kind. |
by_product | array | Spend by product (see the field table above). |
daily, balance_series | array | Spend and balance per day. |
top_hosts, top_gifts | array | Your top 10 hosts and top 10 gifts. |
recharges_vs_spend | object | Money in against money out over time. |
forecast | object | The low-balance forecast. |
{ "currency": "INR", "timezone": "Asia/Kolkata", "from": "2026-10-01", "to": "2026-10-31", "days": 31,
"generated_at": "2026-11-10T06:00:00.000Z",
"balance": { "current": 775, "ledger": 782 },
"pending_usage": { "amount": 7, "by_product": { "calls": 0, "live_hosts": 7, "live_streams": 0, "gifts": 0 } },
"opening_balance": 0, "closing_balance": 924,
"totals": { "spend": 226, "recharges": 1200, "credits": -50, "net": 924,
"credits_by_kind": { "welcome_credit": 100, "grant": 50, "adjustment": -5, "credit_note": 5, "reversal": -200 } },
"by_product": [
{ "product": "gifts", "label": "Gifts", "spend": 115, "share_pct": 50.9, "count": 3, "minutes": null,
"revenue": 190, "you_keep": 100, "split": [] },
{ "product": "live_hosts_auto", "label": "Live Hosts", "spend": 32, "share_pct": 14.2, "count": 2, "minutes": 3,
"revenue": 48, "you_keep": 16,
"split": [ { "key": "audio", "spend": 8, "count": 1, "minutes": 1 }, { "key": "video", "spend": 24, "count": 1, "minutes": 2 } ] } ],
"daily": [ { "date": "2026-10-02", "spend": 15, "products": { "calls_video": 12.5, "calls_audio": 2.5 },
"recharges": 0, "credits": 0, "net": -15, "balance_end": 1085 } ],
"balance_series": [ { "date": "2026-09-30", "balance": 0 }, { "date": "2026-10-01", "balance": 1100 } ],
"top_hosts": [ { "host_ref": "h_asha", "name": "Asha", "spend": 92, "minutes": 3, "calls": 2, "gifts": 1, "gift_spend": 60 } ],
"top_gifts": [ { "gift_id": "g_rose", "name": "Rose", "count": 1, "sends": 1, "cost": 60, "revenue": 150, "you_keep": 90,
"older_live_stream_gift": false } ],
"recharges_vs_spend": { "totals": { "recharges": 1200, "spend": 226 }, "group": "day",
"buckets": [ { "period": "2026-10-01", "recharges": 1000, "spend": 0 } ] },
"forecast": { "method": "trailing_average_v1", "rate_from": "avg_7d", "spiky": false,
"avg_daily_spend": { "last_7_days": 20, "last_30_days": 4.766667 }, "daily_rate": 20,
"days_left": 38, "projected_zero_date": "2026-12-18",
"low_balance_threshold": 500, "below_low_balance": false, "days_to_low_balance": 13, "low_balance_date": "2026-11-23" } }| Field | Meaning |
|---|---|
balance | current is your live balance; ledger is the sum of your statement lines. They differ by pending_usage.amount while something is running. |
totals | spend is your usage; recharges the money you added; credits everything else (welcome credit, credits from us, adjustments, credit notes, reversals; it can be negative), itemised in credits_by_kind. net = recharges + credits − spend = closing − opening. |
by_product | Products with spend in the range, biggest first: spend, its part of the total spend (share_pct, one decimal), count (calls, sessions or sends), minutes where minutes mean something, revenue and you_keep where known, and split (Live Hosts by video and audio; live streams by viewing and stream time). |
daily | One entry per day of the range, zeros included, with the spend per product and the balance at the end of the day. |
balance_series | The balance the day before from, then one point per day. |
top_hosts | Up to 10 hosts by what you spent on them: their Live Hosts calls, the gifts your users sent them and the viewing of their live streams. |
top_gifts | Up to 10 gifts by cost to you, with revenue (your prices) and you_keep. Older live-stream gifts, sent before the gift list, have no price of yours stored: they show older_live_stream_gift: true and no revenue. |
recharges_vs_spend | Money in against money out, grouped by day (up to 31 days), week (from Monday, up to 120 days) or month. |
forecast | See the forecast. days_left and projected_zero_date are null when there is no spend; days_to_low_balance and low_balance_date are null when you have no alert level. |
Statement
/v1/money/statementQuery: from, to, product (one of the products below), kind (recharge, grant, usage, adjustment, credit_note, reversal, promo_credit, promo_revoke, promo_expiry), limit (1 to 500, default 100), before_id (next_before_id of the page before), format (json, csv or pdf).
| Parameter | Type | Required | Default | Allowed values | What it means | Example |
|---|---|---|---|---|---|---|
from | string (day) | optional (query) | 29 days before <code>to</code> | YYYY-MM-DD, not after to; at most 366 days in all | First day, included, in your account's time zone. | 2026-10-01 |
to | string (day) | optional (query) | today | YYYY-MM-DD | Last day, included. | 2026-10-31 |
product | string | optional (query) | all | calls_video, calls_audio, live_hosts_auto, live_hosts_direct, gifts, live_streams, chat, other_usage, recharge, grant, adjustment, credit_note, reversal, welcome_credit, other | Only the lines of this product. | live_hosts_auto |
kind | string | optional (query) | all | recharge, grant, usage, adjustment, credit_note, reversal, promo_credit, promo_revoke, promo_expiry | Only ledger lines of this kind. | usage |
limit | integer | optional (query) | 100 | 1–500 (a bigger number is treated as 500); ignored for CSV and PDF | How many lines one JSON page holds at most. | 50 |
before_id | integer | optional (query) | none (start at the newest) | next_before_id of the page before; ignored for CSV and PDF | The next page: lines before this one. | 7 |
format | string | optional (query) | json | json, csv, pdf | JSON pages, or the whole range as CSV (up to 20,000 lines) or PDF (up to 5,000). | pdf |
| Field | Type | What it means |
|---|---|---|
currency, timezone, from, to, generated_at | string | Currency, time zone, the range and when the answer was made. |
filters | object | The product and kind used. |
opening_balance, closing_balance | number | Your real balance, whatever the filters. |
totals | object | debits, credits, net, rows of the lines that match. |
pending_usage | object | Money taken by what is still running. |
order | string | newest_first (JSON) or oldest_first (CSV, PDF). |
rows | array | The lines: id, created_at, kind, product, description, object, host, end_user_id, quantity, rate, amount, balance_after, revenue, you_keep. |
next_before_id | integer or null | before_id for the next page; null on the last page. |
{ "currency": "INR", "timezone": "Asia/Kolkata", "from": "2026-10-01", "to": "2026-10-31",
"generated_at": "2026-11-10T06:00:00.000Z",
"filters": { "product": null, "kind": null },
"opening_balance": 0, "closing_balance": 924,
"totals": { "debits": 431, "credits": 1355, "net": 924, "rows": 19 },
"pending_usage": { "amount": 7, "by_product": { "calls": 0, "live_hosts": 7, "live_streams": 0, "gifts": 0 } },
"order": "newest_first",
"rows": [
{ "id": 7, "created_at": "2026-10-04T06:00:00.000Z", "kind": "usage", "product": "live_hosts_direct", "sub": "video",
"description": "Live Hosts video call with Riya, 1 min 0 s (Direct)", "description_key": "live_hosts_direct",
"object": { "type": "live_host_call", "id": "0b21190d-2f7c-49bf-a646-82fb13cbd73b" },
"host": { "host_ref": "h_riya", "name": "Riya" }, "end_user_id": "u2",
"quantity": { "seconds": 60 }, "rate": { "per_minute": 15, "unit": "minute" },
"amount": -15, "balance_after": 1038, "revenue": 25, "you_keep": 10 } ],
"next_before_id": null }totalscount the lines that match your filters.opening_balance,closing_balanceand each line’sbalance_afterare your account’s real balance, whatever the filter.amountis negative for money out and positive for money in. The amounts of all lines add up to closing − opening.descriptionis an English sentence;description_keyand the other fields let you write your own (the console shows it in Hindi too).- For a month, pass its first and last day; the console’s monthly statements are the same answer.
- CSV: one header row, then every line of the range, oldest first. Columns:
id, created_at, kind, product, description, object_type, object_id, host_ref, host_name, end_user_id, seconds, count, rate, rate_unit, amount, balance_after, revenue, you_keep, currency.created_atis UTC;amountandbalance_afterhave 6 decimals. - PDF: A4, with your company name, the period, time zone and currency, a summary (opening, money in, money out, closing), every line with its date, description, amount and balance, and page numbers. The PDF is in English and writes the rupee sign as INR.
Products and what each line carries
product | Label | Line |
|---|---|---|
calls_video, calls_audio | Video calls, Audio calls | The call, connected seconds, the rate per minute |
live_hosts_auto, live_hosts_direct | Live Hosts, Live Hosts Direct | The call, the host, the end user, billed seconds, the rate per minute, and what you charged and keep |
gifts | Gifts | The send, the host, the end user, the count, your cost per gift, and what you charged and keep |
live_streams | Live streams | The viewer session (or the live), the host, the end user, seconds, the rate per viewer-minute |
chat | Chat | The month and its monthly active users |
recharge, reversal | Recharges, Recharges reversed | The invoice or credit note number |
grant, adjustment, credit_note, welcome_credit | Credits from Titli, Adjustments, Credit notes, Welcome credit | The amount and a fixed description |
other_usage, other | Other usage, Other | The amount |
A live-stream viewing line is matched to its viewer session by room, end user, amount and time; when nothing matches, the line still shows the room, the end user and its minutes. Everything else is matched exactly.
Limits and errors
- Any range: at most 366 days. A statement page: at most 500 lines. A CSV download: at most 20,000 lines; a PDF: at most 5,000. A longer download is refused rather than cut short: choose a shorter period or one product.
- Rate: 2 requests a second (burst 60) per account; CSV and PDF downloads 1 every 5 seconds (burst 10).
| HTTP | error.code | When |
|---|---|---|
| 400 | invalid_date | from or to is not a day like 2026-11-30, or from is after to |
| 400 | range_too_long | The range is longer than 366 days |
| 400 | too_many_rows | A CSV or PDF would hold more lines than allowed; carries rows and max_rows |
| 400 | invalid_request | An unknown format, table, product or kind, or a bad limit or before_id |
| 429 | rate_limited | Too many requests; wait for Retry-After |
See also: Billing and usage, REST API reference, Error codes.