Skip to main content
Skip to main content

ProductCategory

A product category can be used to categorize products into a hierarchy of categories.

Properties

category_childrenProductCategory[]Required
The details of the category's children.
created_atDateRequired
The date with timezone at which the resource was created.
descriptionstringRequired
The product category's description.
handlestringRequired
A unique string that identifies the Product Category - can for example be used in slug structures.
idstringRequired
The product category's ID
is_activeBooleanRequired
A flag to make product category visible/hidden in the store front

Default: false

is_internalBooleanRequired
A flag to make product category an internal category for admins

Default: false

metadataRecord<string, unknown>Required
An optional key-value map with additional details
namestringRequired
The product category's name
parent_categorynull | ProductCategoryRequired
The details of the parent of this category.
parent_category_idnull | stringRequired
The ID of the parent category.

Default: null

productsProduct[]Required
The details of the products that belong to this category.
ranknumberRequired
An integer that depicts the rank of category in a tree node

Default: 0

updated_atDateRequired
The date with timezone at which the resource was updated.
productCategoryProductJoinTablestringRequired

Default: "product_category_product"

treeRelationsstring[]Required
Was this section helpful?