Shop API icon

Shop API

Call Shop API

Product Units → Search

AI-generated

Summary

Searches Shop API product units by sending a POST request to /v1/productunits/search with an optional JSON filter. Returns matching records, either from one page or across pages.

Inputs

  • Request filter — Optional JSON object sent as the request body to filter product units. Invalid JSON or a JSON value that is not an object is ignored.
  • Get All Pages — Defaults to false. When enabled, fetches pages of up to 100 records and follows the response's pagination metadata; Max Pages can cap the number of pages.
  • Limit — Defaults to 20 and sets the page size when Get All Pages is off. Values at or below zero fall back to 20.
  • Max Pages — When Get All Pages is enabled, optionally limits the number of pages fetched.

Output shape

A list of n8n items, with each returned product unit as an item’s JSON value.

If the API responds with an array or an items array, each entry becomes a separate item; another non-empty response becomes one item. An empty response produces no items. With Get All Pages enabled, the node collects results across pages.

Links

Discussion