Purpose: see which attributes can be used in values and which type they have.
Returns all attributes in one response (no pagination), sorted by code. Properties
without a value (for example false or an empty list) are left out of each item.
Useful types:
pim_catalog_simpleselect/pim_catalog_multiselect: the value must be one of the allowed codes; get them fromGET /attributes/{code}/options.pim_catalog_image: an image attribute; send a URL (see the Images topic).pim_catalog_price_collection: a price, as a list ofamountandcurrency.pim_catalog_text/pim_catalog_textarea: free text;localizable: truemeans it can be sent per language.
GET
/api/rest/v1/retailer/attributes
curl \
--request GET 'https://content.winkelstraat.nl/api/rest/v1/retailer/attributes' \
--header "Authorization: $API_KEY"
Response examples (200)
{
"items": [
{
"code": "color",
"type": "pim_catalog_simpleselect",
"labels": {
"en_US": "Color",
"nl_NL": "Kleur"
}
},
{
"code": "image_1",
"type": "pim_catalog_image",
"labels": {
"en_US": "Image 1",
"nl_NL": "Afbeelding 1"
}
},
{
"code": "name",
"type": "pim_catalog_text",
"localizable": true,
"labels": {
"en_US": "Name",
"nl_NL": "Naam"
}
}
]
}
Response examples (401)
{
"code": 401,
"message": "The access token provided is invalid."
}
Response examples (401)
{
"code": 42,
"message": "string"
}
Response examples (403)
{
"code": 403,
"message": "Access forbidden. You are not allowed to list products."
}
Response examples (403)
{
"code": 42,
"message": "string"
}
Response examples (406)
{
"code": 406,
"message": "\"xxx\" in \"Accept\" header is not valid. Only \"application/json\" is allowed."
}
Response examples (406)
{
"code": 42,
"message": "string"
}