GET /company/categories/@id
This endpoint requires authentication.
Header | Value |
---|---|
Authorization | Set the value to Bearer + + access_token |
Replace the @ keywords in the URL with their corresponding value.
A dictionary with fields
Field | Type | Description |
---|---|---|
id | Int | The ID of the category you want to return |
GET /company/categories/11 HTTP/1.1
Host: api.bakeronline.be
X-VERSION: 1.5.0
Accept-Language: en-US,en;q=0.5
Field | Type | Description |
---|---|---|
name | [Language: String] | Translated category name |
description | [Language: String] | Description of this category |
active | Bool | A boolean value |
only_order_in_store | Bool | Whether this product can only get ordered in the store with a separate UI for the shop employees, and not in the public webshop |
products | [company.Product.simple] | Array of company.Product.simple |
shops | [company.Shop.simple] | Array of company.Shop.simple |
id | Int | ID of the category |
banner | Image? | Nullable. |
seo | company.SeoData | Optional. The category's webpage search engine metatags |
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: 13225
{
"name": "Violet Huels V",
"description": {
"nl": "...",
"en": "...",
"fr": "..."
},
"active": true,
"only_order_in_store": false,
"products": [
{
"name": {
"nl": "...",
"en": "...",
"fr": "..."
},
"description": {
"nl": "...",
"en": "...",
"fr": "..."
},
"specialty": false,
"active": false,
"only_order_in_store": true,
"price_type": "PER_UNIT",
"price": 14,
"target_price": true,
"url_type": "none",
"url": "https://example.com",
"min_max": {
"amount": {
"minimum": 12,
"maximum": 14,
"maximum_day": 17,
"maximum_week": 19
},
"weight": {
"minimum": 11,
"maximum": 19,
"maximum_day": 14,
"maximum_week": 15,
"suggested": 11
},
"persons": {
"minimum": 12,
"maximum": 15
}
},
"id": 11,
"allergens": [
{
"id": 14,
"name": "Gluten"
},
{
"id": 16,
"name": "Sesame"
},
{
"id": 19,
"name": "Sulphite"
}
],
"category_id": 16,
"price_look_up_code": "...",
"code": "...",
"seo": {
"title": {
"en": "Architecto rerum quos id neque similique ut totam odio omnis."
},
"description": {
"en": "Quia explicabo non et et qui culpa itaque. Corrupti ad similique asperiores. Explicabo tenetur rerum quisquam in ut recusandae dolor. Expedita voluptatibus non quis voluptas explicabo dolorum."
},
"url": {
"en": "http://grimes.com/dolor-ad-fugiat-quia-voluptatum-culpa-totam-sit-sunt"
}
}
},
{
"name": {
"nl": "...",
"en": "...",
"fr": "..."
},
"description": {
"nl": "...",
"en": "...",
"fr": "..."
},
"specialty": false,
"active": false,
"only_order_in_store": true,
"price_type": "PER_UNIT",
"price": 15,
"target_price": false,
"url_type": "none",
"url": "https://example.com",
"min_max": {
"amount": {
"minimum": 16,
"maximum": 14,
"maximum_day": 16,
"maximum_week": 11
},
"weight": {
"minimum": 13,
"maximum": 11,
"maximum_day": 18,
"maximum_week": 18,
"suggested": 19
},
"persons": {
"minimum": 15,
"maximum": 16
}
},
"id": 19,
"allergens": [
{
"id": 15,
"name": "Celery"
},
{
"id": 13,
"name": "Fish"
},
{
"id": 16,
"name": "Peanut"
}
],
"category_id": 15,
"price_look_up_code": "...",
"code": "...",
"seo": {
"title": {
"en": "Quae quia tempore quis magni sapiente quidem doloremque."
},
"description": {
"en": "Debitis id consequatur fugiat et aut harum et incidunt. Pariatur quod sunt aut sit. Tenetur ut totam vel consequatur qui."
},
"url": {
"en": "http://pagac.com/"
}
}
},
{
"name": {
"nl": "...",
"en": "...",
"fr": "..."
},
"description": {
"nl": "...",
"en": "...",
"fr": "..."
},
"specialty": true,
"active": false,
"only_order_in_store": false,
"price_type": "PER_UNIT",
"price": 15,
"target_price": true,
"url_type": "none",
"url": "https://example.com",
"min_max": {
"amount": {
"minimum": 10,
"maximum": 14,
"maximum_day": 10,
"maximum_week": 10
},
"weight": {
"minimum": 19,
"maximum": 12,
"maximum_day": 18,
"maximum_week": 12,
"suggested": 17
},
"persons": {
"minimum": 15,
"maximum": 12
}
},
"id": 11,
"allergens": [
{
"id": 14,
"name": "Crustaceans"
},
{
"id": 18,
"name": "Celery"
},
{
"id": 18,
"name": "Crustaceans"
}
],
"category_id": 10,
"price_look_up_code": "...",
"code": "...",
"seo": {
"title": {
"en": "Aut distinctio exercitationem quia architecto exercitationem sed voluptas maiores excepturi."
},
"description": {
"en": "Expedita quis quia doloribus ea est dolorum ut. Itaque quidem recusandae qui deserunt."
},
"url": {
"en": "http://www.hermann.com/natus-corporis-et-blanditiis-reprehenderit-laborum-laudantium-repellendus"
}
}
}
],
"shops": [
{
"name": "Dr. Kali Morissette",
"active": true,
"address": {
"street": "Sint-Denijslaan",
"nr": "96",
"zipcode": "9000",
"city": "Gent",
"country": "BE",
"position": {
"latitude": 1.54361,
"longitude": 0.45645
}
},
"allow_comments": false,
"allow_orders": false,
"delivery_use_intervals": true,
"id": 10,
"avatar": {
"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
},
"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
}
},
{
"name": "Carey Quigley",
"active": false,
"address": {
"street": "Sint-Denijslaan",
"nr": "96",
"zipcode": "9000",
"city": "Gent",
"country": "BE",
"position": {
"latitude": 1.54361,
"longitude": 0.45645
}
},
"allow_comments": false,
"allow_orders": true,
"delivery_use_intervals": false,
"id": 17,
"avatar": {
"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
},
"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
}
},
{
"name": "Dr. Madilyn Nader DDS",
"active": true,
"address": {
"street": "Sint-Denijslaan",
"nr": "96",
"zipcode": "9000",
"city": "Gent",
"country": "BE",
"position": {
"latitude": 1.54361,
"longitude": 0.45645
}
},
"allow_comments": false,
"allow_orders": false,
"delivery_use_intervals": false,
"id": 15,
"avatar": {
"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
},
"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
}
}
],
"id": 19,
"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": false
},
"seo": {
"title": {
"en": "Consequuntur aut ex ut maxime aut nisi quia necessitatibus vel."
},
"description": {
"en": "Exercitationem iure delectus ex aspernatur rerum sapiente rerum. Qui est molestias quam sed dolorum fuga. Reprehenderit mollitia dolores eum sed."
},
"url": {
"en": "https://www.prohaska.com/deleniti-et-itaque-sapiente-non"
}
}
}