List documents
list_documentsList invoices, proformas, or delivery notices with filters for series, number, client, date range, draft/cancelled status, sorting, and pagination.
Instructions
List documents of a given type, with optional filters: series, number, client, issue-date range, draft/cancelled flags, sorting and pagination.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Filter by Oblio document id. | |
| type | Yes | Document type: "invoice" (factura), "proforma", or "notice" (aviz). | |
| draft | No | Draft filter: -1 all, 0 issued only, 1 drafts only. | |
| client | No | Filter by client identity (any combination of cif/email/phone/code). | |
| number | No | Filter by document number. | |
| offset | No | Pagination offset. | |
| orderBy | No | Sort field. | |
| canceled | No | Cancelled filter: -1 all, 0 active only, 1 cancelled only. | |
| orderDir | No | Sort direction. | |
| collected | No | Payment filter: -1 all, 0 uncollected, 1 collected. | |
| seriesName | No | Filter by series. | |
| issuedAfter | No | Issue date lower bound YYYY-MM-DD. | |
| issuedBefore | No | Issue date upper bound YYYY-MM-DD. | |
| limitPerPage | No | Results per page (max 100). | |
| withCollects | No | 1 to include payment collections. | |
| withProducts | No | 1 to include line items in the response. | |
| withEinvoiceStatus | No | 1 to include e-Factura (SPV) status. |