Shop API icon

Shop API

Call Shop API

Customers → Search

AI-generated

Summary

Searches Shop API customers by sending a POST request to /v1/customers/search. Returns each customer result as a separate n8n item; enable all pages to fetch further pages.

Inputs

  • Request filter — Optional JSON object used as the search request body. Invalid JSON or a value that is not an object is ignored. The node sets page and pageSize itself.
  • Get All Pages — Defaults to false. When false, requests one page using the configured Limit, defaulting to 20 records. When true, requests pages of 100 records until the API reports no more pages or reaches its reported totalPages; Max Pages can also cap the fetch.
  • Limit — Used when Get All Pages is false. Defaults to 20; values of 0 or less are reset to 20.
  • Max Pages — Used when Get All Pages is true. Stops after this many pages when set above 0; otherwise there is no configured page cap.

Output shape

A list of n8n items, one per customer result.

If the API response is an array, each element becomes an item; if it contains an items array, those entries become items; otherwise a nonempty response becomes one item. An empty response produces no items. The request uses the configured Shop API credentials.

Links

Discussion