reports_vat
Summarize collected and deductible VAT by rate, net VAT and invoice counts for a month, quarter, year or custom range, with filters for direction, client, supplier, currency and document type.
Instructions
VAT (TVA) summary of a period: issued (collected) and received (deductible) invoices totalled and broken down by VAT rate, net VAT and invoice counts, in the invoice currencies. Period: year+month (default: current month), year+quarter, year+period=year (whole year) or from+to (YYYY-MM-DD). Filters: direction (outgoing|incoming), clientId, supplierId, currency (ISO code), vatRate (only the lines at that rate count), documentType (invoice|credit_note), finalOnly (leave drafts, rejected and converted documents out). Requires X-Company header (companyId param or STORNO_COMPANY_ID env var).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Range end, YYYY-MM-DD (with from) | |
| from | No | Range start, YYYY-MM-DD (with to) | |
| year | No | Report year (default: current year) | |
| month | No | Report month (1–12); the default period when no quarter / period / range is given | |
| period | No | 'year' for the whole year | |
| quarter | No | Quarter (1–4) instead of a month | |
| vatRate | No | Only the lines at this VAT rate (e.g. 21); totals are then summed from those lines | |
| clientId | No | Only invoices of this client (UUID) | |
| currency | No | Only invoices in this currency (ISO code, e.g. RON) | |
| companyId | No | Company UUID (overrides STORNO_COMPANY_ID env var) | |
| direction | No | Only issued or only received invoices | |
| finalOnly | No | Leave drafts, rejected and converted documents out (cancelled ones never count) | |
| supplierId | No | Only invoices of this supplier (UUID) | |
| documentType | No | Only invoices or only credit notes |