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/12 HTTP/1.1
Host: api.bakeronline.be
X-VERSION: 1.9.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 |
code | String? | Nullable. A custom code. You can set this to your own code and use this field to map your categories to Bakeronline categories |
id | Int | ID of the category |
banner | Image? | Nullable. |
overview_image | 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: 18106
{
"name": "Miss Suzanne Feest",
"description": {
"nl": "...",
"en": "...",
"fr": "..."
},
"active": false,
"only_order_in_store": true,
"products": [
{
"name": {
"nl": "...",
"en": "...",
"fr": "..."
},
"description": {
"nl": "...",
"en": "...",
"fr": "..."
},
"specialty": true,
"active": false,
"only_order_in_store": true,
"price_type": "PER_UNIT",
"price": 13,
"target_price": true,
"url_type": "none",
"url": "https://example.com",
"min_max": {
"amount": {
"minimum": 13,
"maximum": 17,
"maximum_day": 11,
"maximum_week": 17
},
"weight": {
"minimum": 15,
"maximum": 10,
"maximum_day": 11,
"maximum_week": 18,
"suggested": 17
},
"persons": {
"minimum": 12,
"maximum": 15
}
},
"id": 19,
"allergens": [
{
"id": 17,
"name": "Egg"
},
{
"id": 14,
"name": "Soy"
},
{
"id": 12,
"name": "Fish"
}
],
"category_id": 11,
"price_look_up_code": "...",
"code": "...",
"seo": {
"title": {
"en": "Et doloremque laudantium hic voluptatem molestias consequuntur."
},
"description": {
"en": "Et modi eos veritatis beatae excepturi ipsam. Exercitationem vel impedit et esse totam veritatis magnam. Odit praesentium quia voluptatibus et maxime suscipit."
},
"url": {
"en": "http://yost.com/optio-ut-nihil-aut-ex-quo-sint-quae.html"
}
},
"origin": {
"nl": "...",
"en": "...",
"fr": "..."
},
"ingredients": {
"nl": "...",
"en": "...",
"fr": "..."
},
"temperature_type": "any",
"warranty_type": "none",
"warranty_price": 12,
"stock": {
"soldout": false,
"amount": 10,
"soldoutUntil": "2019-01-31 12:00"
},
"daysavailable": [
17,
18,
12
],
"upfront": {
"upfront_use_default": false,
"upfront_type": "days",
"upfront_days": 15,
"upfront_time": "12:00",
"upfront_hours": 16,
"upfront_minutes": 13
},
"use_pickup_after": false,
"pickup_after": "12:00",
"use_pickup_before": true,
"pickup_before": "12:00",
"related_products": [
17,
11,
18
]
},
{
"name": {
"nl": "...",
"en": "...",
"fr": "..."
},
"description": {
"nl": "...",
"en": "...",
"fr": "..."
},
"specialty": false,
"active": true,
"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": 18,
"maximum": 13,
"maximum_day": 17,
"maximum_week": 11
},
"weight": {
"minimum": 12,
"maximum": 13,
"maximum_day": 11,
"maximum_week": 11,
"suggested": 10
},
"persons": {
"minimum": 10,
"maximum": 13
}
},
"id": 11,
"allergens": [
{
"id": 15,
"name": "Fish"
},
{
"id": 14,
"name": "Soy"
},
{
"id": 19,
"name": "Gluten"
}
],
"category_id": 12,
"price_look_up_code": "...",
"code": "...",
"seo": {
"title": {
"en": "Nemo quae quia et rerum."
},
"description": {
"en": "Repellat suscipit sed provident id iste tempora. Iusto natus ad sint eligendi voluptates non. Dolorem fugit qui nam facilis. Qui quis doloribus et quasi ut enim doloribus deleniti."
},
"url": {
"en": "http://kovacek.com/"
}
},
"origin": {
"nl": "...",
"en": "...",
"fr": "..."
},
"ingredients": {
"nl": "...",
"en": "...",
"fr": "..."
},
"temperature_type": "any",
"warranty_type": "none",
"warranty_price": 14,
"stock": {
"soldout": false,
"amount": 18,
"soldoutUntil": "2019-01-31 12:00"
},
"daysavailable": [
18,
17,
18
],
"upfront": {
"upfront_use_default": true,
"upfront_type": "days",
"upfront_days": 14,
"upfront_time": "12:00",
"upfront_hours": 10,
"upfront_minutes": 17
},
"use_pickup_after": false,
"pickup_after": "12:00",
"use_pickup_before": false,
"pickup_before": "12:00",
"related_products": [
13,
16,
12
]
},
{
"name": {
"nl": "...",
"en": "...",
"fr": "..."
},
"description": {
"nl": "...",
"en": "...",
"fr": "..."
},
"specialty": false,
"active": false,
"only_order_in_store": true,
"price_type": "PER_UNIT",
"price": 13,
"target_price": false,
"url_type": "none",
"url": "https://example.com",
"min_max": {
"amount": {
"minimum": 13,
"maximum": 11,
"maximum_day": 16,
"maximum_week": 12
},
"weight": {
"minimum": 15,
"maximum": 16,
"maximum_day": 10,
"maximum_week": 16,
"suggested": 18
},
"persons": {
"minimum": 10,
"maximum": 18
}
},
"id": 19,
"allergens": [
{
"id": 19,
"name": "Crustaceans"
},
{
"id": 13,
"name": "Peanut"
},
{
"id": 10,
"name": "Sesame"
}
],
"category_id": 15,
"price_look_up_code": "...",
"code": "...",
"seo": {
"title": {
"en": "Corporis autem illo et quia assumenda assumenda cupiditate enim."
},
"description": {
"en": "Ipsa sunt provident et doloribus et. Illum maxime quibusdam est corrupti corporis molestiae. Eligendi a enim doloribus aperiam qui qui aut."
},
"url": {
"en": "http://pacocha.com/"
}
},
"origin": {
"nl": "...",
"en": "...",
"fr": "..."
},
"ingredients": {
"nl": "...",
"en": "...",
"fr": "..."
},
"temperature_type": "any",
"warranty_type": "none",
"warranty_price": 10,
"stock": {
"soldout": false,
"amount": 10,
"soldoutUntil": "2019-01-31 12:00"
},
"daysavailable": [
13,
17,
10
],
"upfront": {
"upfront_use_default": true,
"upfront_type": "days",
"upfront_days": 14,
"upfront_time": "12:00",
"upfront_hours": 14,
"upfront_minutes": 14
},
"use_pickup_after": true,
"pickup_after": "12:00",
"use_pickup_before": true,
"pickup_before": "12:00",
"related_products": [
14,
13,
11
]
}
],
"shops": [
{
"name": "Izaiah Aufderhar",
"active": false,
"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": false,
"allow_invoices": true,
"allow_order_comments": false,
"allow_product_comments": true,
"takeout_use_intervals": false,
"allow_order_messages": true,
"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
}
],
"file_id": 12,
"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
}
],
"file_id": 13,
"white_background": false
},
"url": "..."
},
{
"name": "Valerie Hyatt",
"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": false,
"delivery_use_intervals": false,
"allow_invoices": true,
"allow_order_comments": true,
"allow_product_comments": true,
"takeout_use_intervals": false,
"allow_order_messages": false,
"id": 19,
"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
}
],
"file_id": 11,
"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
}
],
"file_id": 11,
"white_background": false
},
"url": "..."
},
{
"name": "Yadira Olson",
"active": false,
"address": {
"street": "Sint-Denijslaan",
"nr": "96",
"zipcode": "9000",
"city": "Gent",
"country": "BE",
"position": {
"latitude": 1.54361,
"longitude": 0.45645
}
},
"allow_comments": true,
"allow_orders": false,
"delivery_use_intervals": true,
"allow_invoices": false,
"allow_order_comments": false,
"allow_product_comments": false,
"takeout_use_intervals": true,
"allow_order_messages": 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
}
],
"file_id": 19,
"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
}
],
"file_id": 12,
"white_background": true
},
"url": "..."
}
],
"code": "...",
"id": 14,
"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
}
],
"file_id": 16,
"white_background": false
},
"overview_image": {
"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
}
],
"file_id": 12,
"white_background": false
},
"seo": {
"title": {
"en": "Rerum aut blanditiis repudiandae consequuntur ut omnis laudantium culpa perspiciatis."
},
"description": {
"en": "Recusandae ea ea rerum nihil facilis assumenda architecto. Ipsa molestiae exercitationem ex officiis et. Et sit nobis laudantium dicta et blanditiis."
},
"url": {
"en": "https://www.schimmel.com/soluta-cumque-sed-autem-dolores"
}
}
}