commercetools icon

commercetools

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

Actions671

Product-type → Get ProductType by ID

AI-generated

Summary

Retrieve a specific Product-Type resource from commercetools by its unique Product-type ID, optionally applying query filters such as expansion of references.

Inputs

  • Product-type ID (required) — The unique identifier for the Product-type to fetch.
  • Filters — Optional query parameters to refine the response, including 'Expand' to expand referenced resources inline.

Output shape

a single JSON object representing the requested Product-Type, including all standard fields returned by commercetools API for this resource

The operation returns the full Product-Type data if found; errors are thrown if the ID does not exist or API call fails. Supports optional 'Expand' query parameter to include related referenced objects directly in the response.

Examples

Example 1: Get a Product-type with ID 'abc123' including expanded references

Set resource to 'Product-type', operation to 'Get ProductType by ID', enter 'abc123' as Product-type ID, add an 'Expand' filter if needed.

Links

Discussion