list_sales_documents
Retrieve commercial sales documents with pagination and filtering by type, customer, or date. Use the fields parameter to limit response columns for faster results.
Instructions
List commercial sales documents, newest first by default.
Use page_number + page_size to paginate, and fields to limit
the response to just the columns you need.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Exact date match (YYYY-MM-DD). TOCOnline does not support ranges. | |
| sort | No | JSON:API sort expression. Prefix with `-` for descending. Defaults to `-date`. Examples: `-date`, `date,document_no`, `-id`, `-gross_total`. | -date,-id |
| fields | No | Comma-separated subset of fields to return. Hugely reduces response size — sales docs have 117 fields. Common subset: `document_no,date,gross_total,status,customer_id`. | |
| page_size | No | Items per page (1-500). | |
| customer_id | No | Filter by customer id (exact match). | |
| page_number | No | 1-based page number for paging past the first page. | |
| document_type | No | Exact document type code, e.g. FT (invoice), FR (receipt), NC (credit note). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||