List sales orders
distru_list_ordersRetrieve sales orders filtered by status, date range, product, or order number. Track order progress from pending to delivered and reconcile with Distru ERP.
Instructions
List sales orders (GET /public/v1/orders). Status is one of PENDING, PROCESSING, READY_TO_SHIP, DELIVERING, DELIVERED, COMPLETED, CANCELED. Totals are decimal strings. New status values may be added over time, so handle unknown tokens rather than assuming this list is closed.
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": "distru_list_orders"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | No | ||
| page | No | 1-indexed page number. Page size is not guaranteed stable; follow next_page instead. | |
| statuses | No | ||
| company_ids | No | Buyer company relationship ids. | |
| product_ids | No | Restrict to orders containing any of these products. | |
| order_number | No | Substring match on order number. | |
| order_numbers | No | Exact match on any order number. | |
| order_datetime | No | Comma-delimited datetime range. "T," = on or after T; ",T" = on or before T; "A,B" = between A and B inclusive. Format: YYYY-MM-DDTHH:MM:SS.MSZ. | |
| updated_datetime | No |