getOrders
List shop orders. Omit locationRef, customerRef and userRef to list across all locations, or provide one to scope the list. Call getLocations to list locations, or getLocation to fetch one by locationId. Call getCustomers to list valid customerRef values. Filter by categoryRef from getShopCategories, productRef from getProducts, createDate or status.
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": "getOrders"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of orders per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100. | |
| status | No | Filter by order status: 'pending' placed, payment still processing; 'new' placed and paid, awaiting fulfillment; 'inProgress' being fulfilled; 'completed' fulfilled; 'canceled' canceled by the customer or an admin. Defaults to new, inProgress and completed. Comma-separated, one or more of: canceled, completed, inProgress, new, pending. | |
| userRef | No | UUID of the user whose orders to list. | |
| createDate | No | Filter by create date (createDate). Provide gte, lte ISO datetimes. | |
| productRef | No | Filter by the products in the order. Comma-separated, one or more UUIDs. | |
| categoryRef | No | Filter by the shop categories of the products in the order. Use none for products without a category. Comma-separated, one or more UUIDs or "none". | |
| customerRef | No | UUID of the customer whose orders to list. | |
| locationRef | No | UUID of the location whose orders to list. Omit locationRef, customerRef and userRef to list orders across every location of the network, newest first. | |
| nextPageToken | No | Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| orders | Yes | ||
| nextPageToken | No | Pass it back as nextPageToken, with the same filters, to get the next page. Absent on the last page. |