commercetools icon

commercetools

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

Actions671

Product → Query Product Selections for Product by Product ID

AI-generated

Summary

Query product selections that include a specified product by providing the Product ID, optionally applying filters such as sorting, pagination, and expansion of referenced objects.

Inputs

  • Product ID (required) — The unique identifier of the product for which related product selections are queried.
  • Filters — Optional query parameters to refine the results, including 'withTotal' to include total count, 'expand' to include referenced resources, 'sort' for ordering, 'limit' to restrict number of items returned, 'offset' to skip items, and 'where' for conditional filtering.

Output shape

a JSON object representing the product selections that include the specified product, potentially containing metadata like total counts and expanded references as requested.

The operation returns a single JSON object containing the query results. The response structure depends on optional filter parameters. Pagination and sorting can be controlled via 'limit', 'offset', and 'sort' filters. The 'expand' filter allows inclusion of referenced resources. Errors during execution yield a node error unless 'Continue on Fail' is enabled.

Examples

Example 1: Retrieve product selections including a product with ID '12345'

Set 'Product ID' to '12345' and optionally use filters like 'limit' to retrieve a subset.

Links

Discussion