list_purchase_documents
List commercial purchase documents with filtering by type, supplier, date, and fields. Newest documents appear first by default.
Instructions
List commercial purchase documents, newest first by default.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_purchase_documents"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Exact date match (YYYY-MM-DD). TOCOnline does not support ranges. | |
| sort | No | JSON:API sort. Defaults to `-date` (newest first). | -date,-id |
| fields | No | Comma-separated subset of fields to return. | |
| page_size | No | Items per page (1-500). | |
| page_number | No | 1-based page number. | |
| supplier_id | No | Filter by supplier id (exact match). | |
| document_type | No | Exact document type code (supplier-invoice codes vary). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||