Data Object: Product Categories

Get Product Category


{{ data.category.get(:id) }}

Parameter Type Description
id required int Product category Identifier

HHTP/1.1 200 OK
{
     id: 1,
     parentId: 0,
     alias: "shirts",
     name: "Shirts",
     productCount: 20,
     child: [
          {
               id: 15
               parentId: 1,
               alias: "baby-shirts",
               name: "Baby shirts",
               productCount: 15
          }
          ...
     ]
}

or

false

Parameter Type Description
id int Product category identifier
parentId int Parent category identifier
alias string Product category alias
name string Product category name
productCount int Products count with category
child array Child categories


Get Product Categories List


{{ data.category.list({}) }}

HTTP/1.1 200 OK
[
     {
          id: 1,
          parentId: 0,
          alias: "shirts",
          name: "Shirts",
          productCount: 20,
          child: [
               {
                    id: 15
                    parentId: 1,
                    alias: "baby-shirts",
                    name: "Baby shirts",
                    productCount: 15
               }
               ...
          ]
    }
    ...
]

or

[]

Parameter Type Description
id int Product category identifier
parentId int Parent category identifier
alias string Product category alias
name string Product category name
productCount int Products count with category
child array Child categories