Sales summary
bsale_sales_summaryTotals of sales documents (net, tax, total, count) by month, document type and office for a date range; set per_document to list each document instead. Good for 'how much did we sell in September?'. GET /v1/documents/summary.json.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Results per page, 1-50 (default 25). | |
| offset | No | Items to skip (default 0). Pass the previous reply's next_offset. | |
| code_sii | No | Only these document type tax codes, e.g. [33, 39] (Chile) or ["01", "03"] (Peru). | |
| emitted_to | No | A date, yyyy-mm-dd. | |
| emitted_from | No | A date, yyyy-mm-dd. | |
| per_document | No | true = one row per document instead of grouped totals. |