orders_searchOrders

Search orders (Orders v2026-01-01): ONE Amazon page plus data.nextToken, the full v2026 filter set, and line items INLINE on each order (order.orderItems) — no separate items call.

readAmazon Seller (SP-API)sp.orders_2026-01-01

To sync a window, repeat with the same filters and pagination_token = data.nextToken until it is null; for an incremental sync pass last_updated_after = your last watermark. For one known order id use orders_getOrder. Amazon SP-API · searchOrders · GET /orders/2026-01-01/orders

Call it

In an AI client (MCP)

tools/call
{
  "name": "orders_searchOrders",
  "arguments": {
    "store": "myStore-US"
  }
}

From code (Tool API)

curl -X POST https://api.sellersheetai.com/api/v1/tools/orders_searchOrders \
  -H "Authorization: Bearer $SELLERSHEET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"store":"myStore-US"}'
Early access — the Tool API is open on request, contact us.

Arguments

NameTypeDescription
storerequiredstringthe store ref `<store>-<CC>` (name-country, e.g. 'myStore-US') — one of get_user_context's store_refs, verbatim.
created_afterstring · date-timeISO 8601 with the Z suffix ('2026-04-20T00:00:00Z') — v2026 rejects a naive timestamp. Exactly ONE of created_after or last_updated_after is required (Amazon refuses none or both). The response includes orders created at or after this time. The date must be in ISO 8601 format. Note: You must provide exactly one of createdAfter and lastUpdatedAfter in your request. If createdAfter is provided, neither lastUpdatedAfter nor lastUpdatedBefore may be provided.
created_beforestring · date-timeISO 8601 with the Z suffix ('2026-04-20T00:00:00Z') — v2026 rejects a naive timestamp. Exactly ONE of created_after or last_updated_after is required (Amazon refuses none or both). The response includes orders created at or before this time. The date must be in ISO 8601 format. Note: If you include createdAfter in the request, createdBefore is optional, and if provided must be equal to or after the createdAfter date and at least two minutes before the time of the request. If createdBefore is provided, neither lastUpdatedAfter nor lastUpdatedBefore may be provided.
last_updated_afterstring · date-timethe same rule; last_updated_after is the incremental-sync watermark. The response includes orders updated at or after this time. An update is any change made by Amazon or the seller, including changes to order status. The date must be in ISO 8601 format. Note: You must provide exactly one of createdAfter and lastUpdatedAfter. If lastUpdatedAfter is provided, neither createdAfter nor createdBefore may be provided.
last_updated_beforestring · date-timethe same rule; last_updated_after is the incremental-sync watermark. The response includes orders updated at or before this time. An update is any change made by Amazon or the seller, including changes to order status. The date must be in ISO 8601 format. Note: If you include lastUpdatedAfter in the request, lastUpdatedBefore is optional, and if provided must be equal to or after the lastUpdatedAfter date and at least two minutes before the time of the request. If lastUpdatedBefore is provided, neither createdAfter nor createdBefore may be provided.
fulfillment_statusesstring[]the fulfillment states to keep. v2026 has no orderStatuses filter and no flat orderStatus field — filter here, or pass included_data ['FULFILLMENT'] and read order.fulfillment.fulfillmentStatus. Allowed: PENDING_AVAILABILITY | PENDING | UNSHIPPED | PARTIALLY_SHIPPED | SHIPPED | CANCELLED | UNFULFILLABLE.PENDING_AVAILABILITYPENDINGUNSHIPPEDPARTIALLY_SHIPPEDSHIPPEDCANCELLEDUNFULFILLABLE
marketplace_idsobject[]OMIT it — the search is then scoped to the store ref's marketplace; a list (≤50) searches exactly those marketplaces and mixes their orders.
fulfilled_bystring[]who fulfils the order; omit for both. Allowed: MERCHANT | AMAZON.MERCHANTAMAZON
included_datastring[]expansion selectors per order, as on orders_getOrder — PACKAGES carries tracking inline. Allowed (the subset that needs no Restricted Data Token): RECIPIENT | PROCEEDS | EXPENSE | PROMOTION | CANCELLATION | FULFILLMENT | PACKAGES | TAX | PAYMENT | FULFILLMENT_ORDERS.RECIPIENTPROCEEDSEXPENSEPROMOTIONCANCELLATIONFULFILLMENTPACKAGESTAXPAYMENTFULFILLMENT_ORDERS
max_results_per_pageinteger1–100 (default 100). The maximum number of orders that can be returned per page. The value must be between 1 and 100. Default: 100.
pagination_tokenstringthe cursor from the previous call's data.nextToken; omit for the first page. Pagination occurs when a request produces a response that exceeds the maxResultsPerPage. This means that the response is divided into individual pages. To retrieve the next page, you must pass the nextToken value as the paginationToken query parameter in the next request. You will not receive a nextToken value on the last page.

Result

Every tool answers {notification, data, human_action}; data carries:

  • data.orders / data.count — this page's orders (line items at order.orderItems) and how many.
  • data.nextToken — pass it as pagination_token; null on the last page.
  • data.createdBefore / data.lastUpdatedBefore — the upper bound Amazon actually applied (clamped to ~2 minutes before the request) — whichever is non-null is the "after" watermark of your next incremental sync; use it instead of your own clock or you leave a gap.

Gotchas

  • Provide EXACTLY ONE of created_after or last_updated_after (the matching "before" is optional); mixing the two pairs is InvalidInput.

On this page

Actions

View as Markdown

Ask an assistant

Ask ChatGPTAsk Claude