Get list of attribute options by attribute code
This endpoint allows you to get a list of attribute options with corresponding code.
Path parameters
-
code
string Required Code of the resource
GET
/api/rest/v1/retailer/attributes/{code}/options
curl \
--request GET 'https://content.winkelstraat.nl/api/rest/v1/retailer/attributes/{code}/options'
Response examples (200)
[
{
"code": "red",
"labels": {
"en_US": "Red",
"nl_NL": "Rood"
},
"attribute": "color",
"sort_order": 1
},
{
"code": "black",
"labels": {
"en_US": "Black",
"nl_NL": "Zwart"
},
"attribute": "color",
"sort_order": 2
},
{
"code": "purple",
"labels": {
"en_US": "Purple",
"nl_NL": "Paars"
},
"attribute": "color",
"sort_order": 3
}
]
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"
}