report_top_clients
Rank clients by total invoiced amount in a date range. Returns client name, total amount, and invoice count per currency, sorted descending.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Number of top clients to return (default 10) | |
| 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 | |
| date_from | No | Start date inclusive (YYYY-MM-DD) |