Get list of categories and codes
This endpoint lists all categories and corresponding codes.
GET /api/rest/v1/retailer/categories/codes
curl \
-X GET https://content.winkelstraat.nl/api/rest/v1/retailer/categories/codes
Response examples (200)
[
{
"code": "master",
"parent": null,
"labels": {
"en_US": "Root",
"nl_NL": "Root"
},
"hierarhy": [
"master"
]
},
{
"code": "17",
"parent": "master",
"labels": {
"en_US": "Men",
"nl_NL": "Heren"
},
"hierarhy": [
"17",
"master"
]
}
]
Response examples (401)
Code
401
"Authentication is required"
Response examples (401)
{
"code": 42,
"message": "string"
}
Response examples (403)
Code
403
"Access forbidden. You are not allowed to list categories."
Response examples (403)
{
"code": 42,
"message": "string"
}
Response examples (406)
Code
406
"‘xxx’ in ‘Accept‘ header is not valid. Only ‘application/json‘ is allowed."
Response examples (406)
{
"code": 42,
"message": "string"
}