The category object represents a collection of products. Categories are different than collections in that they can be nested underneath one another to form a tree.

Properties:

id - Integer - Unique id for the category

name - String - Name of the category

path - String - URL path to the category on your store

parent_categories - [Category] - Array of ancestor categories for the category

child_categories - [Category] - Array of child categories for the category

products - [Product] - Array of products associated with the category

product_count - Integer - The number of products associated with the category

product_types - [ProductType] - Array of product types associated with the category

images - [Image] - Array of images attached to the category

primary_image - Image - The primary category image

Did this answer your question?