Retrieve Category

GET/store/:storeCode/product-categories/:id
publishable key

Retrieve a product category by ID.

Path Parameters
storeCoderequiredstring

Store slug in the URL (first argument to every SDK store method).

idrequiredstring

The category's ID.

Query Parameters
fieldsstring

Comma-separated fields to include. Prefix with `*` to expand a relation (e.g. `id,*variants`).

include_descendants_treeboolean

Include the full descendants tree.

include_ancestors_treeboolean

Include the ancestors tree.

Response

Status

200OK

Schema

Copy
HttpTypes.StoreProductCategoryResponse

Properties

product_categoryrequiredStoreProductCategory

The category.