List sales orders
list_sales_ordersSales orders — what a customer has agreed to buy — with how much has been delivered (delivered: none, partial or complete), how much invoiced, and the value still to invoice (remaining). An order is not an invoice: nobody owes anything on it until it is invoiced. Reads the entity the person is working in unless entity_id names another.
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_sales_orders"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Order number, customer name, customer PO or memo. | |
| limit | No | Maximum rows to return (1-200, default 50). | |
| offset | No | Rows to skip, for paging. | |
| status | No | Default: every status. | |
| entity_id | No | Another entity in the same books (ids from `list_entities`). Leave out to use the entity the person is working in. | |
| customer_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Why the result was truncated, when it was. | |
| count | Yes | How many rows are in `results`. | |
| results | Yes | The rows. | |
| truncated | No | Present and true when the result was too large to return in full. Treat it as a partial answer. | |
| total_available | No | How many rows existed before truncation. |