commercetools icon

commercetools

Interact with the commercetools API. Operations are auto-generated from the official Postman collection.

Actions671

Product Selection → Query Products in ProductSelection by Key

AI-generated

Summary

Retrieve products associated with a specific commercetools Product Selection identified by its key, optionally applying filters and query parameters to control the response.

Inputs

  • Product Selection Key (required) — Specify the unique key of the Product Selection to query products from.
  • Filters — Optional filters and query parameters to refine the list of products returned, including: 'where' (filter condition), 'withTotal' (whether to include total count), 'expand' (fields to expand), 'limit' (max number of products), 'offset' (pagination offset), and 'sort' (sorting criteria).

Output shape

a list of product records within the specified Product Selection, returned as JSON objects

The output is the JSON response from the commercetools API listing products filtered and paginated as requested. The node returns one JSON object per item. Errors will throw exceptions unless 'continueOnFail' is enabled.

Examples

Example 1: Fetch first 10 products in a Product Selection with key "summer-collection"

Set 'Product Selection Key' to 'summer-collection', set 'Filters' with 'limit' = '10', then execute the node to receive product details.

Links

Discussion