invoices_list
List invoices for the active company with filters for status, direction, date range, client, and search. Returns paginated results with totals.
Instructions
List invoices for the active company with pagination, filtering, and sorting. Supports filtering by status (draft/issued/sent_to_provider/validated/rejected/cancelled), direction (incoming/outgoing), date range, client, and search term. Returns paginated results with totals.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | End date filter in ISO 8601 format (YYYY-MM-DD) | |
| from | No | Start date filter in ISO 8601 format (YYYY-MM-DD) | |
| page | No | Page number (default: 1) | |
| sort | No | Field to sort by (default: issueDate) | |
| limit | No | Items per page, max 100 (default: 20) | |
| order | No | Sort order: asc or desc (default: desc) | |
| 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: incoming or outgoing invoices |