invoices_summary
Aggregate invoice totals without returning raw records. Returns count plus per-currency sums (gross total, taxable base, VAT) grouped by the chosen dimension — sums are never mixed across currencies. Much cheaper than search_invoices + manual aggregation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | No | Document state filter: draft, open, closed, cancelled, or the alias "issued" (= open+closed). Defaults to "issued", so draft and cancelled invoices are excluded from the figures. Pass "all" to include every state. | |
| date_to | No | End date inclusive (YYYY-MM-DD) | |
| currency | No | Restrict to one currency before grouping | |
| group_by | No | Grouping dimension: "month" (default), "year", "client", "state", "currency" | |
| date_from | No | Start date inclusive (YYYY-MM-DD) |