commercetools icon

commercetools

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

Actions671

Product → Get Product by Key

AI-generated

Summary

Retrieve a commercetools product by its unique product key, optionally applying filters to refine price-related attributes or expand included references in the response.

Inputs

  • Product Key (required) — The unique key that identifies the product to retrieve.
  • Filters — Optional query parameters to filter the product data. Includes price currency, country, customer group, customer group assignments, price channel, price recurrence policy, and expand for related resources.

Output shape

a single JSON object representing the product data retrieved from commercetools.

Returns the full product object as JSON. The response may include expanded references if the 'expand' filter is set. Errors during retrieval will throw exceptions or return error JSON if 'Continue On Fail' is enabled.

Examples

Example 1: Get product with specific key and currency filter

Product Key set with key value; Price Currency filter set to a currency code like 'USD'.

Links

Discussion