getBalanceHistory
Retrieve a newest-first ledger of your organization's balance changes with signed amounts and resulting balance. Filter by date to find where credit went or when a top-up landed.
Instructions
Every change to your organization's balance, newest first: each call charge, recharge, phone number purchase or renewal, subscription credit, reward and adjustment, with the signed amount and the balance right after it.
Use it to find out where credit went, or when a top-up landed. The dashboard's usage statement shows the same entries as totals per day and per kind.
Days are in your account's time zone. Without dates you get the last 31 days; a range covers at most 31 days. The API key's user needs Billing access in your organization.
(Tags: Account)
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "getBalanceHistory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pageno | No | Page number. | |
| date_to | No | Last day (`YYYY-MM-DD`), included. Defaults to today. | |
| pagesize | No | Entries per page. | |
| date_from | No | First day (`YYYY-MM-DD`). Defaults to 30 days before `date_to`. |