Get invoice totals
get_invoice_totalsSums the issued invoices (or proformas) of a company dated in a period, per currency: count, net, VAT, gross, paid, unpaid and overdue. Drafts and cancelled documents are not counted.
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": {
"company_id": "<company_id>",
"date_from": "<date_from>",
"date_to": "<date_to>"
},
"name": "get_invoice_totals"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | The document type to sum; INVOICE when not given. Proformas count when issued or converted to an invoice. | |
| date_to | Yes | Last day of the period, YYYY-MM-DD, included; the period is at most 366 days long. | |
| date_from | Yes | First day of the period, YYYY-MM-DD. | |
| company_id | Yes | The id of the company, from list_companies. |