get-aged-receivables-v2
Get the aged receivables v2 report for a company: outstanding amounts customers owe as of dateTo, grouped by contact into aging buckets. Built from unreconciled balances on the accounts receivable ledger account; returns report and exchangeRates. Use get-overdue-invoices for past-due buckets only, get-invoice-pending-summary for totals, or get-aged-receivables for the original report. Requires the invoice:read scope.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"companyId": "<companyId>"
},
"name": "get-aged-receivables-v2"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dateTo | No | As-of date for the aging (YYYY-MM-DD). Defaults to today. | |
| dateFrom | No | Not used: the aging report runs as of dateTo. | |
| companyId | Yes | Company ID |