GET /shops/@shop/categories/@id
You can use authentication for this request, but it is not required. Always provide the access_token when you have one. It may affect the response.
Header | Value |
---|---|
Authorization | Optional. Set the value to Bearer + + access_token |
Replace the @ keywords in the URL with their corresponding value.
A dictionary with fields
Field | Type | Description |
---|---|---|
shop | Int | An integer value |
id | Int | An integer value |
GET /shops/14/categories/15 HTTP/1.1
Host: api.bakeronline.be
X-VERSION: 1.0.0
Accept-Language: en-US,en;q=0.5
Field | Type | Description |
---|---|---|
id | Int | Id of the category |
name | String | Translated category name |
banner | Image? | Nullable. |
messages | [String] | Array of String |
products | [Product.detailed] | Array of Product.detailed |
seo | company.SeoData | Optional. Product page SEO metatags |
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: 21323
{
"id": 11,
"name": "Kenny King",
"banner": {
"resolutions": [
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
}
],
"white_background": true
},
"messages": [
"...",
"...",
"..."
],
"products": [
{
"id": 16,
"name": "...",
"images": [
{
"resolutions": [
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
}
],
"white_background": true
},
{
"resolutions": [
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
}
],
"white_background": true
},
{
"resolutions": [
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
}
],
"white_background": false
}
],
"price_type": "PER_UNIT",
"target_price": false,
"price": 13,
"subtitle": "...",
"description": "...",
"allergens": [
{
"id": 16,
"name": "Mustard"
},
{
"id": 16,
"name": "Soy"
},
{
"id": 17,
"name": "Crustaceans"
}
],
"url": "https://example.com",
"url_type": "none",
"specialty": false,
"favourite": true,
"product_prices": [
{
"id": 11,
"name": "...",
"price": 17
},
{
"id": 18,
"name": "...",
"price": 13
},
{
"id": 16,
"name": "...",
"price": 17
}
],
"optionsets": [
{
"id": 16,
"name": "...",
"allow_attachment": false,
"options": [
{
"id": 16,
"name": "...",
"price_change": 16
},
{
"id": 15,
"name": "...",
"price_change": 11
},
{
"id": 11,
"name": "...",
"price_change": 14
}
]
},
{
"id": 12,
"name": "...",
"allow_attachment": false,
"options": [
{
"id": 14,
"name": "...",
"price_change": 14
},
{
"id": 17,
"name": "...",
"price_change": 11
},
{
"id": 12,
"name": "...",
"price_change": 10
}
]
},
{
"id": 17,
"name": "...",
"allow_attachment": true,
"options": [
{
"id": 15,
"name": "...",
"price_change": 12
},
{
"id": 14,
"name": "...",
"price_change": 18
},
{
"id": 12,
"name": "...",
"price_change": 12
}
]
}
],
"min_max": {
"amount": {
"minimum": 15,
"maximum": 14,
"suggested": 11
},
"weight": {
"minimum": 17,
"maximum": 16,
"suggested": 17
},
"persons": {
"minimum": 12,
"maximum": 12,
"suggested": 17
}
},
"info": [
{
"name": "...",
"title": "...",
"text": "...",
"type": "HTML"
},
{
"name": "...",
"title": "...",
"text": "...",
"type": "HTML"
},
{
"name": "...",
"title": "...",
"text": "...",
"type": "HTML"
}
]
},
{
"id": 16,
"name": "...",
"images": [
{
"resolutions": [
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
}
],
"white_background": true
},
{
"resolutions": [
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
}
],
"white_background": true
},
{
"resolutions": [
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
}
],
"white_background": true
}
],
"price_type": "PER_UNIT",
"target_price": false,
"price": 16,
"subtitle": "...",
"description": "...",
"allergens": [
{
"id": 11,
"name": "Mollusc"
},
{
"id": 19,
"name": "Mollusc"
},
{
"id": 16,
"name": "Lactose"
}
],
"url": "https://example.com",
"url_type": "none",
"specialty": false,
"favourite": false,
"product_prices": [
{
"id": 18,
"name": "...",
"price": 10
},
{
"id": 12,
"name": "...",
"price": 10
},
{
"id": 10,
"name": "...",
"price": 14
}
],
"optionsets": [
{
"id": 13,
"name": "...",
"allow_attachment": true,
"options": [
{
"id": 10,
"name": "...",
"price_change": 18
},
{
"id": 12,
"name": "...",
"price_change": 11
},
{
"id": 17,
"name": "...",
"price_change": 19
}
]
},
{
"id": 17,
"name": "...",
"allow_attachment": false,
"options": [
{
"id": 12,
"name": "...",
"price_change": 18
},
{
"id": 15,
"name": "...",
"price_change": 13
},
{
"id": 10,
"name": "...",
"price_change": 10
}
]
},
{
"id": 18,
"name": "...",
"allow_attachment": true,
"options": [
{
"id": 13,
"name": "...",
"price_change": 10
},
{
"id": 13,
"name": "...",
"price_change": 14
},
{
"id": 18,
"name": "...",
"price_change": 19
}
]
}
],
"min_max": {
"amount": {
"minimum": 12,
"maximum": 17,
"suggested": 10
},
"weight": {
"minimum": 11,
"maximum": 15,
"suggested": 16
},
"persons": {
"minimum": 17,
"maximum": 15,
"suggested": 15
}
},
"info": [
{
"name": "...",
"title": "...",
"text": "...",
"type": "HTML"
},
{
"name": "...",
"title": "...",
"text": "...",
"type": "HTML"
},
{
"name": "...",
"title": "...",
"text": "...",
"type": "HTML"
}
]
},
{
"id": 17,
"name": "...",
"images": [
{
"resolutions": [
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
}
],
"white_background": true
},
{
"resolutions": [
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
}
],
"white_background": true
},
{
"resolutions": [
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
}
],
"white_background": true
}
],
"price_type": "PER_UNIT",
"target_price": false,
"price": 14,
"subtitle": "...",
"description": "...",
"allergens": [
{
"id": 13,
"name": "Mollusc"
},
{
"id": 13,
"name": "Mustard"
},
{
"id": 11,
"name": "Crustaceans"
}
],
"url": "https://example.com",
"url_type": "none",
"specialty": false,
"favourite": true,
"product_prices": [
{
"id": 16,
"name": "...",
"price": 14
},
{
"id": 18,
"name": "...",
"price": 10
},
{
"id": 14,
"name": "...",
"price": 18
}
],
"optionsets": [
{
"id": 17,
"name": "...",
"allow_attachment": false,
"options": [
{
"id": 15,
"name": "...",
"price_change": 10
},
{
"id": 11,
"name": "...",
"price_change": 14
},
{
"id": 11,
"name": "...",
"price_change": 15
}
]
},
{
"id": 10,
"name": "...",
"allow_attachment": false,
"options": [
{
"id": 16,
"name": "...",
"price_change": 15
},
{
"id": 10,
"name": "...",
"price_change": 10
},
{
"id": 17,
"name": "...",
"price_change": 15
}
]
},
{
"id": 12,
"name": "...",
"allow_attachment": true,
"options": [
{
"id": 14,
"name": "...",
"price_change": 17
},
{
"id": 10,
"name": "...",
"price_change": 16
},
{
"id": 11,
"name": "...",
"price_change": 12
}
]
}
],
"min_max": {
"amount": {
"minimum": 16,
"maximum": 10,
"suggested": 14
},
"weight": {
"minimum": 10,
"maximum": 19,
"suggested": 14
},
"persons": {
"minimum": 18,
"maximum": 10,
"suggested": 18
}
},
"info": [
{
"name": "...",
"title": "...",
"text": "...",
"type": "HTML"
},
{
"name": "...",
"title": "...",
"text": "...",
"type": "HTML"
},
{
"name": "...",
"title": "...",
"text": "...",
"type": "HTML"
}
]
}
],
"seo": {
"title": {
"en": "Repellendus voluptate quia vitae et quidem magni fugit quia labore."
},
"description": {
"en": "Molestiae cumque vel quia ut voluptas inventore minus. Asperiores nostrum nihil sit debitis repudiandae tenetur consequatur. Non est qui aliquam nam suscipit tenetur voluptatem."
},
"url": {
"en": "http://www.little.org/cumque-numquam-expedita-rerum.html"
}
}
}