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/16/categories/18 HTTP/1.1
Host: api.bakeronline.be
X-VERSION: 0.2.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: 21292
{
"id": 17,
"name": "Malachi Medhurst",
"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": 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": false
},
{
"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": true,
"price": 17,
"subtitle": "...",
"description": "...",
"allergens": [
{
"id": 16,
"name": "Crustaceans"
},
{
"id": 11,
"name": "Crustaceans"
},
{
"id": 10,
"name": "Lupine"
}
],
"url": "https://example.com",
"url_type": "none",
"specialty": true,
"favourite": true,
"product_prices": [
{
"id": 11,
"name": "...",
"price": 16
},
{
"id": 15,
"name": "...",
"price": 19
},
{
"id": 13,
"name": "...",
"price": 10
}
],
"optionsets": [
{
"id": 16,
"name": "...",
"allow_attachment": true,
"options": [
{
"id": 18,
"name": "...",
"price_change": 15
},
{
"id": 14,
"name": "...",
"price_change": 14
},
{
"id": 11,
"name": "...",
"price_change": 14
}
]
},
{
"id": 18,
"name": "...",
"allow_attachment": false,
"options": [
{
"id": 16,
"name": "...",
"price_change": 10
},
{
"id": 16,
"name": "...",
"price_change": 14
},
{
"id": 18,
"name": "...",
"price_change": 19
}
]
},
{
"id": 10,
"name": "...",
"allow_attachment": true,
"options": [
{
"id": 12,
"name": "...",
"price_change": 13
},
{
"id": 17,
"name": "...",
"price_change": 11
},
{
"id": 11,
"name": "...",
"price_change": 15
}
]
}
],
"min_max": {
"amount": {
"minimum": 12,
"maximum": 17,
"suggested": 14
},
"weight": {
"minimum": 17,
"maximum": 16,
"suggested": 15
},
"persons": {
"minimum": 15,
"maximum": 19,
"suggested": 15
}
},
"info": [
{
"name": "...",
"title": "...",
"text": "...",
"type": "HTML"
},
{
"name": "...",
"title": "...",
"text": "...",
"type": "HTML"
},
{
"name": "...",
"title": "...",
"text": "...",
"type": "HTML"
}
]
},
{
"id": 15,
"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": true,
"price": 12,
"subtitle": "...",
"description": "...",
"allergens": [
{
"id": 10,
"name": "Mollusc"
},
{
"id": 14,
"name": "Peanut"
},
{
"id": 13,
"name": "Lupine"
}
],
"url": "https://example.com",
"url_type": "none",
"specialty": true,
"favourite": true,
"product_prices": [
{
"id": 13,
"name": "...",
"price": 18
},
{
"id": 15,
"name": "...",
"price": 12
},
{
"id": 14,
"name": "...",
"price": 17
}
],
"optionsets": [
{
"id": 17,
"name": "...",
"allow_attachment": true,
"options": [
{
"id": 19,
"name": "...",
"price_change": 11
},
{
"id": 15,
"name": "...",
"price_change": 15
},
{
"id": 19,
"name": "...",
"price_change": 11
}
]
},
{
"id": 15,
"name": "...",
"allow_attachment": true,
"options": [
{
"id": 10,
"name": "...",
"price_change": 18
},
{
"id": 18,
"name": "...",
"price_change": 19
},
{
"id": 18,
"name": "...",
"price_change": 14
}
]
},
{
"id": 15,
"name": "...",
"allow_attachment": true,
"options": [
{
"id": 17,
"name": "...",
"price_change": 11
},
{
"id": 17,
"name": "...",
"price_change": 14
},
{
"id": 15,
"name": "...",
"price_change": 16
}
]
}
],
"min_max": {
"amount": {
"minimum": 19,
"maximum": 10,
"suggested": 16
},
"weight": {
"minimum": 12,
"maximum": 18,
"suggested": 18
},
"persons": {
"minimum": 14,
"maximum": 18,
"suggested": 10
}
},
"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": false
},
{
"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
},
{
"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": 14,
"subtitle": "...",
"description": "...",
"allergens": [
{
"id": 16,
"name": "Mollusc"
},
{
"id": 19,
"name": "Mollusc"
},
{
"id": 16,
"name": "Sesame"
}
],
"url": "https://example.com",
"url_type": "none",
"specialty": false,
"favourite": false,
"product_prices": [
{
"id": 18,
"name": "...",
"price": 18
},
{
"id": 12,
"name": "...",
"price": 16
},
{
"id": 15,
"name": "...",
"price": 13
}
],
"optionsets": [
{
"id": 16,
"name": "...",
"allow_attachment": false,
"options": [
{
"id": 16,
"name": "...",
"price_change": 10
},
{
"id": 13,
"name": "...",
"price_change": 12
},
{
"id": 19,
"name": "...",
"price_change": 11
}
]
},
{
"id": 13,
"name": "...",
"allow_attachment": false,
"options": [
{
"id": 11,
"name": "...",
"price_change": 16
},
{
"id": 14,
"name": "...",
"price_change": 19
},
{
"id": 14,
"name": "...",
"price_change": 18
}
]
},
{
"id": 14,
"name": "...",
"allow_attachment": true,
"options": [
{
"id": 13,
"name": "...",
"price_change": 13
},
{
"id": 10,
"name": "...",
"price_change": 11
},
{
"id": 14,
"name": "...",
"price_change": 13
}
]
}
],
"min_max": {
"amount": {
"minimum": 12,
"maximum": 17,
"suggested": 12
},
"weight": {
"minimum": 19,
"maximum": 13,
"suggested": 13
},
"persons": {
"minimum": 15,
"maximum": 14,
"suggested": 12
}
},
"info": [
{
"name": "...",
"title": "...",
"text": "...",
"type": "HTML"
},
{
"name": "...",
"title": "...",
"text": "...",
"type": "HTML"
},
{
"name": "...",
"title": "...",
"text": "...",
"type": "HTML"
}
]
}
],
"seo": {
"title": {
"en": "Illum dicta expedita asperiores accusantium."
},
"description": {
"en": "Quis ad et commodi maxime laudantium a dolor. Et minima et consectetur id. Quo eveniet itaque molestias voluptas molestiae quaerat vel."
},
"url": {
"en": "http://frami.net/doloribus-corrupti-atque-repellat-praesentium-sint-qui-molestiae.html"
}
}
}