Find orders
find_ordersFor shop owners: search the order book by status, due dates, the days money was paid, a customer, text, or needs_action (orders waiting on the seller). Returns up to 20 compact rows by due date, each with its id, number, revision, status, items, total and what is still owed. One order in full is get_order.
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": "find_orders"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | By due time: oldest first (default) or newest first. | |
| text | No | Words to look for in the customer's name or contact, or an order number. | |
| cursor | No | The `next_cursor` of the page before. | |
| due_to | No | Due on or before this day. | |
| status | No | Only orders in these statuses. Left out, every status except draft. | |
| paid_to | No | Only orders with a payment made on or before this day. | |
| customer | No | One customer's orders, by name or id (cus_...). | |
| due_from | No | Due on or after this day on the shop's clock. For example "2026-12-01" with due_to "2026-12-07" for that week. | |
| paid_from | No | Only orders with a payment made on or after this day, on the shop's clock. For example "2026-11-01" with paid_to "2026-11-30" for orders paid in November. | |
| needs_action | No | Only orders waiting on the seller: requests to answer, orders with no time, money to settle. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| next | No | ||
| error | No | ||
| orders | No | ||
| choices | No | ||
| outcome | No | ||
| timezone | No | ||
| next_cursor | No |