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/19 HTTP/1.1
Host: api.bakeronline.be
X-VERSION: 1.3.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: 13227
{
"name": "Eunice Harvey",
"description": {
"nl": "...",
"en": "...",
"fr": "..."
},
"active": true,
"only_order_in_store": false,
"products": [
{
"name": {
"nl": "...",
"en": "...",
"fr": "..."
},
"description": {
"nl": "...",
"en": "...",
"fr": "..."
},
"specialty": true,
"active": false,
"only_order_in_store": false,
"price_type": "PER_UNIT",
"price": 17,
"target_price": true,
"url_type": "none",
"url": "https://example.com",
"min_max": {
"amount": {
"minimum": 13,
"maximum": 16,
"maximum_day": 11,
"maximum_week": 15
},
"weight": {
"minimum": 17,
"maximum": 14,
"maximum_day": 15,
"maximum_week": 16,
"suggested": 15
},
"persons": {
"minimum": 18,
"maximum": 12
}
},
"id": 19,
"allergens": [
{
"id": 12,
"name": "Fish"
},
{
"id": 14,
"name": "Fish"
},
{
"id": 15,
"name": "Mollusc"
}
],
"category_id": 10,
"price_look_up_code": "...",
"seo": {
"title": {
"en": "Temporibus et et omnis laudantium distinctio labore quod qui laborum."
},
"description": {
"en": "Praesentium asperiores blanditiis amet voluptas dolorum. Sunt est adipisci hic. Repellat sed totam laborum dolor. Quasi molestias rerum dolorum aut voluptas qui qui."
},
"url": {
"en": "http://zulauf.com/ipsam-deleniti-et-eum-sit-labore-quos-ab"
}
},
"code": "..."
},
{
"name": {
"nl": "...",
"en": "...",
"fr": "..."
},
"description": {
"nl": "...",
"en": "...",
"fr": "..."
},
"specialty": true,
"active": true,
"only_order_in_store": true,
"price_type": "PER_UNIT",
"price": 11,
"target_price": false,
"url_type": "none",
"url": "https://example.com",
"min_max": {
"amount": {
"minimum": 13,
"maximum": 13,
"maximum_day": 19,
"maximum_week": 19
},
"weight": {
"minimum": 19,
"maximum": 16,
"maximum_day": 15,
"maximum_week": 12,
"suggested": 13
},
"persons": {
"minimum": 11,
"maximum": 10
}
},
"id": 15,
"allergens": [
{
"id": 11,
"name": "Sulphite"
},
{
"id": 19,
"name": "Sulphite"
},
{
"id": 19,
"name": "Egg"
}
],
"category_id": 19,
"price_look_up_code": "...",
"seo": {
"title": {
"en": "Saepe id quia enim ea et."
},
"description": {
"en": "Numquam est blanditiis et dignissimos suscipit ullam. Dolor rem est molestiae provident qui provident et. Sit sit eius id praesentium quia ut."
},
"url": {
"en": "http://www.zulauf.com/omnis-incidunt-quam-asperiores-ut-expedita-sapiente-tempora"
}
},
"code": "..."
},
{
"name": {
"nl": "...",
"en": "...",
"fr": "..."
},
"description": {
"nl": "...",
"en": "...",
"fr": "..."
},
"specialty": true,
"active": true,
"only_order_in_store": false,
"price_type": "PER_UNIT",
"price": 11,
"target_price": true,
"url_type": "none",
"url": "https://example.com",
"min_max": {
"amount": {
"minimum": 18,
"maximum": 11,
"maximum_day": 13,
"maximum_week": 19
},
"weight": {
"minimum": 16,
"maximum": 10,
"maximum_day": 11,
"maximum_week": 17,
"suggested": 17
},
"persons": {
"minimum": 17,
"maximum": 12
}
},
"id": 19,
"allergens": [
{
"id": 11,
"name": "Mustard"
},
{
"id": 12,
"name": "Sulphite"
},
{
"id": 14,
"name": "Mollusc"
}
],
"category_id": 14,
"price_look_up_code": "...",
"seo": {
"title": {
"en": "Repellat ut odit beatae unde ipsum."
},
"description": {
"en": "Aliquam unde et ratione esse eos. Exercitationem suscipit quasi voluptatum. Minima accusantium voluptas perferendis quo. Dicta impedit tempore eum voluptatum excepturi cupiditate sint sed."
},
"url": {
"en": "http://yost.com/"
}
},
"code": "..."
}
],
"shops": [
{
"name": "Zackery Cartwright",
"active": true,
"address": {
"street": "Sint-Denijslaan",
"nr": "96",
"zipcode": "9000",
"city": "Gent",
"country": "BE",
"position": {
"latitude": 1.54361,
"longitude": 0.45645
}
},
"allow_comments": true,
"allow_orders": true,
"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": false
}
},
{
"name": "Brayan Romaguera",
"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": true,
"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": false
},
"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": "Prof. Trudie Runolfsson Sr.",
"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": 13,
"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": false
},
"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
}
}
],
"id": 16,
"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": "Atque eum ea rem officia nihil eum et expedita quisquam consequatur."
},
"description": {
"en": "Ea voluptatem enim enim dolores in dolor. In et repellat eum et doloribus natus eligendi. Ut officiis voluptate aut et."
},
"url": {
"en": "http://www.sawayn.org/distinctio-pariatur-necessitatibus-voluptate-magnam-eum-aperiam-et-dolor"
}
}
}