commercetools icon

commercetools

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

Actions671

Category → Get Category by ID

AI-generated

Summary

Retrieve a single category from commercetools by its unique Category ID, optionally applying OData-style 'expand' filters to fetch related references.

Inputs

  • Category ID (required) — The unique identifier of the category to retrieve.
  • Filters — Optional parameters to modify the response, such as 'expand' for expanding references.

Output shape

A single JSON object representing the fetched category.

Returns the category object matching the specified ID, including expanded references if filters are used. Errors are thrown if the category is not found or request fails.

Examples

Example 1: Fetch a category by ID with expanded parent categories

Set 'Category ID' to the desired category's ID and add 'expand' filter with the value 'parent'.

Links

Discussion