Orders
list_orders
readList orders
Survey a Store trading activity and obtain the order ids get_order takes, without pulling customer data into the answer.
Overview
Lists orders synchronised into the connected Store from its selling platform, newest first, with each order id, its external order id and display number, its status and status display name, its line-item count, and its total in integer minor units with the currency. Filters narrow the list by status, by originating customiser, by store order number text, by exact line-item count and by creation day, counted in an IANA timezone (UTC by default). Customer and line-item detail is a separate read. It requires the orders:read scope and has no side effects.
Permission
Requires theorders:readpermission. A connection without it answersinsufficient_scopenaming the permission to approve.
Annotations
Prerequisites
- A merchant has connected this store and approved the orders:read scope.
Arguments
How many orders to return per page, between 1 and 100. Defaults to 20.
The opaque next_cursor value from the previous page, sent back with identical filters.
Optional filters. An unknown filter is rejected, never ignored.
Only orders in this status. Expected to grow: tolerate unknown values.
One of: received
Only orders with a line item from this customiser. Legacy order projections carry no modern line items and so never match.
Only orders whose store order number contains this text, ignoring case and a leading #.
Only orders with exactly this many modern line items, the count line_item_count reports.
The first included creation day, YYYY-MM-DD, counted in timezone.
The last included creation day, YYYY-MM-DD, counted in timezone. It must not precede created_from.
The IANA timezone the creation days are counted in, such as Australia/Sydney. Defaults to UTC.
Result
Up to `limit` order summaries, newest first, plus the cursor for the next page. No customer, address or line-item detail: those are get_order.
The page of order summaries, newest first.
Integer minor units of currency.
Error cases
The connection was approved without orders:read.
The cursor was altered or reused for a different collection, Store, filters, timezone, or sort; restart with no cursor.
A date filter is not YYYY-MM-DD, created_to precedes created_from, store_order_number is blank or too long, line_item_count is not an integer from 0 to 1000, or timezone is not an IANA timezone name.
Remove the filter named in parameter. This tool forwards unknown filter names so the API can refuse them explicitly.
Orders created in one UTC window
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "list_orders",
"arguments": {
"limit": 1,
"filter": {
"created_from": "2026-07-01",
"created_to": "2026-07-31"
}
}
}
}{
"jsonrpc": "2.0",
"id": 1,
"result": {
"structuredContent": {
"request_id": "req_01jz9x2k7c8f3m5n6p7q8r9s0t",
"store": {
"id": 12,
"name": "Demo Signs"
},
"orders": [
{
"id": 123,
"store_order_id": "gid://shopify/Order/1001",
"store_order_number": "#1001",
"status": "received",
"status_display_name": "Received",
"total_amount": 31900,
"currency": "AUD",
"line_item_count": 2,
"created_at": "2026-07-18T02:15:00Z",
"updated_at": "2026-07-18T02:16:00Z"
}
],
"pagination": {
"has_more": false,
"next_cursor": null
}
}
}
}A date filter in the wrong format (error)
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "list_orders",
"arguments": {
"filter": {
"created_from": "18/07/2026"
}
}
}
}{
"jsonrpc": "2.0",
"id": 1,
"result": {
"isError": true,
"structuredContent": {
"error": {
"code": "invalid_parameter",
"title": "Invalid query parameter",
"detail": "The filter[created_from] parameter must be a UTC date in YYYY-MM-DD format.",
"recovery": "Correct the parameter named in parameter. Dates are YYYY-MM-DD in UTC and identifiers are integers between 1 and 2147483647.",
"parameter": "filter[created_from]"
}
}
}
}