invoices_list
Retrieve paginated invoices for the active company with filtering by status, direction, date range, client, and search term, plus sorting and 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 |
|---|---|---|---|
| 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) | |
| dateTo | No | End date filter on the issue date, ISO 8601 (YYYY-MM-DD) | |
| search | No | Search term for invoice number or client name | |
| status | No | Filter by invoice status | |
| clientId | No | Filter by client UUID | |
| dateFrom | No | Start date filter on the issue date, ISO 8601 (YYYY-MM-DD) | |
| companyId | No | Company UUID override (uses active company if not set) | |
| direction | No | Filter by direction: incoming or outgoing invoices |