commercetools icon

commercetools

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

Actions671

Type → Get Type by ID

AI-generated

Summary

Retrieve a specific Type object from commercetools by its unique Type ID, optionally expanding referenced fields.

Inputs

  • Type ID (required) — The unique identifier of the Type to retrieve.
  • Expand — An optional query parameter to control which referenced resources should be expanded in the response.

Output shape

a single Type object in JSON format representing the requested resource

Returns the full Type resource JSON if found; may include expanded references if the 'Expand' parameter is set. Errors if the Type ID does not exist or request fails.

Examples

Example 1: Retrieve a Type by ID without expansions

Set 'Type ID' to the ID of the Type you want to fetch, leaving 'Expand' empty.

Example 2: Retrieve a Type by ID with expansions

Set 'Type ID' and specify fields to expand in 'Expand' to include related resources inline.

Links

Discussion