List Sales Orders
get_sales_ordersList sales orders — orders CUSTOMERS placed with this business (customer orders by default; in any language a customer's orders are sales orders, not purchase orders) for reconciliation / status reporting — e.g. to verify imported/pushed orders landed. OPEN ORDERS: in everyday speech "open" or "outstanding" sales orders means the ones not fulfilled yet — pass state=open (created through packed, ready to ship, awaiting pickup, backordered, partly shipped). state=closed is the finished ones (shipped, completed, canceled). There is no status named open. Filters (all optional, AND-combined): type (sales [default], sro); state (open, closed); status (one exact lifecycle status, e.g. created, approved, picking, shipped, completed, canceled; with state it must belong to that state — unknown values are rejected); partnerSearch (customer name); numberSearch (case-insensitive substring of the SO number OR of the linked channel order number — a Shopify order number like 154938 or an Amazon order id finds the SO it became, so try it before asking what a bare number refers to); sku (only SOs with a line for that exact SKU); createdFrom/createdTo (ISO 8601 bounds on the created date — historical imports are dated from their order date). Newest first. Paged: returns Total (pre-paging — the answer to "how many") plus the page; default 100, max 500. Each row is an order-level summary (customer, store, total, line count, lifecycle dates) — not line detail. A client-pinned token sees only its own client's SOs; an operator token sees the whole tenant's.
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": "get_sales_orders"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sku | No | Return only SOs containing a line for this exact SKU (case-insensitive). | |
| type | No | Document type: sales (default), sro. | |
| limit | No | Page size (default 100, max 500). | |
| state | No | Grouped lifecycle filter. open = not fulfilled yet (created, approved, issued, waitingApproval, waitingbackorder, backorder, pending, picking, picked, packing, packed, readyForShipping, waitingPersonalPickup, shipping) — what "open sales orders" means in everyday speech. closed = finished (shipped, completed, canceled). Omit for both. | |
| offset | No | Zero-based offset for paging (default 0). | |
| status | No | Exact lifecycle status, one value (e.g. approved, shipped, completed). For "open orders" use state=open instead. Omit for all statuses. | |
| createdTo | No | Only SOs created on/before this ISO 8601 instant, or through the end of this local day for a bare YYYY-MM-DD. | |
| createdFrom | No | Only SOs created on/after this ISO 8601 instant, or from the start of this local day for a bare YYYY-MM-DD. | |
| numberSearch | No | Case-insensitive substring match on the SO number or on the linked channel order number (Shopify order number, Amazon order id). | |
| partnerSearch | No | Case-insensitive substring match on the customer name. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| limit | No | ||
| total | No | ||
| offset | No | ||
| orders | No |