commercetools icon

commercetools

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

Actions671

Product → Get Product by ID

AI-generated

Summary

Retrieve a product from the commercetools platform by its unique product ID, optionally applying filters to refine the returned data such as price selection and expansion of related resources.

Inputs

  • Product ID (required) — The unique identifier of the product to retrieve.
  • Filters — Optional parameters to filter or expand the product data, including price currency, country, customer group, channel, recurrence policy, and related resource expansions.

Output shape

a single product record in JSON format including all requested expansions and filtered price information if specified.

Filters are optional and when provided, control which prices and related resources are included in the returned product data. If the product ID does not exist, the node will throw an error unless continueOnFail is enabled.

Examples

Example 1: Retrieve a specific product by its ID with no filters

Set the resource to Product, operation to Get Product by ID, and provide the Product ID. Leave filters empty.

Example 2: Retrieve a product with price in a specific currency and expanded categories

Provide the Product ID, set the Price Currency filter, and use the Expand filter to include related category data.

Links

Discussion