invoices_export_csv
Export filtered invoices to CSV. Supports filters by status, direction, date range, client, and more. Returns UTF-8 CSV with BOM for Excel compatibility.
Instructions
Export a filtered list of invoices to CSV format. Accepts the same filters as invoices_list (status, direction, date range, client, etc.). Returns CSV text with UTF-8 BOM for Excel compatibility. Max 10,000 invoices; use invoices_export_zip for large exports with files.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | End date (YYYY-MM-DD) | |
| from | No | Start date (YYYY-MM-DD) | |
| sort | No | Sort field | |
| order | No | Sort order | |
| search | No | Search term for invoice number or client name | |
| status | No | Filter by invoice status | |
| clientId | No | Filter by client UUID | |
| companyId | No | Company UUID override (uses active company if not set) | |
| direction | No | Filter by direction |