Get a retailer product
This endpoint allows you to get the information about a given retailer product.
Path parameters
-
Code of the resource
GET /api/rest/v1/retailer/products/{code}
curl \
-X GET https://content.winkelstraat.nl/api/rest/v1/retailer/products/{code}
Response examples (200)
{
"identifier": "top_child_size_m",
"enabled": true,
"category": "120",
"parent": "top",
"values": {
"name": [
{
"data": "Top",
"locale": "en_US"
},
{
"data": "Topje",
"locale": "nl_NL"
}
],
"description": [
{
"data": "Summer top",
"locale": "en_US"
},
{
"data": "Zomer top",
"locale": "nl_NL"
}
],
"price": [
{
"data": [
{
"amount": "15.5",
"currency": "EUR"
}
]
}
],
"manufacturer": [
{
"data": "guess"
}
],
"manufacturer_product_number": [
{
"data": "G1234"
}
],
"color": [
{
"data": "black"
}
],
"size": [
{
"data": "m"
}
]
}
}
Response examples (200)
{
"identifier": "top_child_size_m",
"enabled": true,
"category": "120",
"parent": "top",
"values": {
"name": [
{
"data": "Top",
"locale": "en_US"
},
{
"data": "Topje",
"locale": "nl_NL"
}
],
"description": [
{
"data": "Summer top",
"locale": "en_US"
},
{
"data": "Zomer top",
"locale": "nl_NL"
}
],
"price": [
{
"data": [
{
"amount": "15.5",
"currency": "EUR"
}
]
}
],
"manufacturer": [
{
"data": "guess"
}
],
"manufacturer_product_number": [
{
"data": "G1234"
}
],
"color": [
{
"data": "black"
}
],
"size": [
{
"data": "m"
}
]
}
}
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 (404)
Code
404
"Resource `my_resource_code` does not exist."
Response examples (404)
{
"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"
}