Shop API icon

Shop API

Call Shop API

Orders → Search

AI-generated

Summary

Searches Shop API orders using an optional JSON filter and returns matching orders as n8n items. You can fetch one page or enable pagination to collect multiple pages.

Inputs

  • filter — Optional JSON object sent as the search request body; invalid JSON is ignored. The node sets its page and pageSize values.
  • getAllPages — When false (default), fetches one page. When true, requests pages of 100 and continues according to the API response’s pagination metadata.
  • limit — Maximum records requested on the single page; defaults to 20. Values less than or equal to zero are reset to 20. Used when Get All Pages is off.
  • maxPages — Optional cap on pages fetched when Get All Pages is on. If unset or less than or equal to zero, no page-count cap is applied.

Output shape

A list of n8n items, one per returned order.

Posts to /v1/orders/search. An array response is emitted item by item; an items array is also emitted item by item, and another truthy response shape becomes one item. With Get All Pages enabled, fetching stops when pagination metadata indicates there are no more pages or the optional Max Pages cap is reached.

Links

Discussion