get https://{accountName}.{environment}.com.br/api/catalog_system/pub/specification/field/listTreeByCategoryId/
Lists all specifications including the current category and the level zero specifications from a category by its ID.
Response body has the following properties:
Attribute | Type | Description |
---|---|---|
Name | string | Specification Name |
CategoryId | integer | Category ID |
FieldId | integer | Specification ID |
IsActive | boolean | If the specification is active |
IsStockKeepingUnit | boolean | If is an SKU specification |
Response body example:
[
{
"Name": "Specification A",
"CategoryId": 1,
"FieldId": 33,
"IsActive": true,
"IsStockKeepingUnit": false
},
{
"Name": "Specification B",
"CategoryId": 1,
"FieldId": 34,
"IsActive": true,
"IsStockKeepingUnit": false
},
{
"Name": "Specification C",
"CategoryId": 1,
"FieldId": 35,
"IsActive": false,
"IsStockKeepingUnit": false
},
{
"Name": "Specification D",
"CategoryId": 1,
"FieldId": 36,
"IsActive": false,
"IsStockKeepingUnit": false
},
{
"Name": "Specification E",
"CategoryId": 1,
"FieldId": 37,
"IsActive": false,
"IsStockKeepingUnit": false
},
{
"Name": "Specification F",
"CategoryId": 1,
"FieldId": 39,
"IsActive": false,
"IsStockKeepingUnit": false
}
]