ProductCategory
A product category can be used to categorize products into a hierarchy of categories.
Properties
idstringRequiredThe product category's ID
created_atDateRequiredThe date with timezone at which the resource was created.
productCategoryProductJoinTablestringRequiredDefault: "product_category_product"
treeRelationsstring[]Requiredupdated_atDateRequiredThe date with timezone at which the resource was updated.
namestringRequiredThe product category's name
descriptionstringRequiredThe product category's description.
handlestringRequiredA unique string that identifies the Product Category - can for example be used in slug structures.
is_activeBooleanRequiredA flag to make product category visible/hidden in the store front
Default: false
is_internalBooleanRequiredA flag to make product category an internal category for admins
Default: false
The details of the parent of this category.
parent_category_idnull | stringRequiredThe ID of the parent category.
Default: null
The details of the category's children.
ranknumberRequiredAn integer that depicts the rank of category in a tree node
Default: 0
metadataRecord<string, unknown>RequiredAn optional key-value map with additional details
The details of the products that belong to this category.
Was this section helpful?