Category

GetCandy\Api\Core\Categories\Models\Category

GitHub View class

Default Attributes

  • id - The encoded ID
  • sort - The sort order for products
  • products_count - The number of products associated to the category
  • children_count - The number of children the category has

Whatever custom attributes are assigned to the product are also included in the output.

Example

{
    "id": "wz6d39dj",
    "sort": "min_price:asc",
    "products_count": 8,
    "children_count": 6,
    "name": "Some Category",
    // Any more custom attributes
}

Available includes

  • children
  • channels
  • ancestors
  • routes
  • layout
  • assets
  • attributes
  • routes
  • customer_groups
  • products