commercetools icon

commercetools

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

Actions671

Type → Get Type by Key

AI-generated

Summary

Retrieve a commercetools Type resource by its unique key within the specified project.

Inputs

  • Type Key (required) — The unique key of the Type resource to retrieve.
  • Filters — Optional query parameters to customize the returned Type, such as 'expand' to include references.

Output shape

a single JSON object representing the Type resource identified by the given key

If the Type with the specified key does not exist, the request will return an error. Optional 'expand' filters can be used to include expanded references in the returned data.

Examples

Example 1: Retrieve a Type by key without expansions

Set 'Type Key' to the unique key of the Type.

Example 2: Retrieve a Type by key with expanded references

Set 'Type Key' to the unique key, and set 'Filters' > 'Expand' to specify paths to expand in the response.

Links

Discussion