Search documents
icount_search_documentsSearch iCount documents by type, status, client, date range, or document number. Apply at least one filter to retrieve matching documents or an empty result.
Instructions
Search existing iCount documents by type, status, client, date range, or document number. At least one filter is required. A search that matches nothing returns { docs: [], matched: 0 } — that is a normal empty result, not an error. A very broad date range can be rejected as too_many_results; narrow it rather than raising maxResults, which does not lift that limit.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vatId | No | ||
| docnum | No | ||
| offset | No | Pagination offset | |
| status | No | 0=open, 1=closed, 2=partially closed | |
| doctype | No | ||
| endDate | No | Range end | |
| clientId | No | ||
| sortField | No | ||
| sortOrder | No | ||
| startDate | No | Range start | |
| clientName | No | ||
| maxResults | No | Default 100 | |
| clientEmail | No | ||
| detailLevel | No | 0=basic ... 10=complete (default 1). High values return a lot of data. |