Get information about one category

GET /company/categories/@id

Request

Authentication

This endpoint requires authentication.

Header Value
Authorization Set the value to Bearer + + access_token

URL parameters

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

Example request 1

GET /company/categories/11 HTTP/1.1
Host: api.bakeronline.be
X-VERSION: 0.2.1
Accept-Language: en-US,en;q=0.5

Response

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

Example response 1

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: 12893

{
    "name": "Dr. Khalil Quitzon I",
    "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": 19,
            "target_price": false,
            "url_type": "none",
            "url": "https://example.com",
            "min_max": {
                "amount": {
                    "minimum": 10,
                    "maximum": 14,
                    "maximum_day": 15,
                    "maximum_week": 12
                },
                "weight": {
                    "minimum": 13,
                    "maximum": 16,
                    "maximum_day": 14,
                    "maximum_week": 14,
                    "suggested": 15
                },
                "persons": {
                    "minimum": 15,
                    "maximum": 12
                }
            },
            "id": 17,
            "allergens": [
                {
                    "id": 15,
                    "name": "Lupine"
                },
                {
                    "id": 18,
                    "name": "Mollusc"
                },
                {
                    "id": 13,
                    "name": "Mollusc"
                }
            ],
            "price_look_up_code": "...",
            "seo": {
                "title": {
                    "en": "Qui aspernatur et quis et quaerat."
                },
                "description": {
                    "en": "Expedita corrupti voluptatum vitae molestiae quos. A autem similique id fuga suscipit. Ut assumenda optio laborum et accusantium occaecati earum. Aut eius eum ad."
                },
                "url": {
                    "en": "https://osinski.com/voluptatem-illo-dolorem-id-voluptatem-labore-nobis.html"
                }
            }
        },
        {
            "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": false,
            "url_type": "none",
            "url": "https://example.com",
            "min_max": {
                "amount": {
                    "minimum": 11,
                    "maximum": 14,
                    "maximum_day": 13,
                    "maximum_week": 19
                },
                "weight": {
                    "minimum": 17,
                    "maximum": 12,
                    "maximum_day": 10,
                    "maximum_week": 12,
                    "suggested": 13
                },
                "persons": {
                    "minimum": 18,
                    "maximum": 15
                }
            },
            "id": 10,
            "allergens": [
                {
                    "id": 13,
                    "name": "Nuts"
                },
                {
                    "id": 17,
                    "name": "Milk"
                },
                {
                    "id": 12,
                    "name": "Gluten"
                }
            ],
            "price_look_up_code": "...",
            "seo": {
                "title": {
                    "en": "Assumenda itaque id et id sit eos quia repellat."
                },
                "description": {
                    "en": "Aut nihil vero illum aut ipsa. Non eveniet omnis sint."
                },
                "url": {
                    "en": "http://rice.com/nobis-earum-itaque-distinctio-rerum"
                }
            }
        },
        {
            "name": {
                "nl": "...",
                "en": "...",
                "fr": "..."
            },
            "description": {
                "nl": "...",
                "en": "...",
                "fr": "..."
            },
            "specialty": true,
            "active": true,
            "only_order_in_store": false,
            "price_type": "PER_UNIT",
            "price": 19,
            "target_price": true,
            "url_type": "none",
            "url": "https://example.com",
            "min_max": {
                "amount": {
                    "minimum": 11,
                    "maximum": 15,
                    "maximum_day": 15,
                    "maximum_week": 14
                },
                "weight": {
                    "minimum": 13,
                    "maximum": 10,
                    "maximum_day": 12,
                    "maximum_week": 17,
                    "suggested": 15
                },
                "persons": {
                    "minimum": 17,
                    "maximum": 16
                }
            },
            "id": 19,
            "allergens": [
                {
                    "id": 12,
                    "name": "Sulphite"
                },
                {
                    "id": 19,
                    "name": "Sesame"
                },
                {
                    "id": 19,
                    "name": "Egg"
                }
            ],
            "price_look_up_code": "...",
            "seo": {
                "title": {
                    "en": "Ut enim et magni modi voluptatem aliquid."
                },
                "description": {
                    "en": "Est aperiam culpa et ut nulla. In cumque id pariatur vero. Optio ut iusto qui quia aspernatur. Asperiores exercitationem odio autem qui molestiae."
                },
                "url": {
                    "en": "http://www.goldner.com/aut-veritatis-commodi-sapiente-provident-molestiae"
                }
            }
        }
    ],
    "shops": [
        {
            "name": "Christelle Nienow",
            "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": 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": true
            }
        },
        {
            "name": "Dr. Eli Howell",
            "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": 12,
            "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": "Wava Stoltenberg",
            "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": 18,
            "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
            }
        }
    ],
    "id": 12,
    "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
    },
    "seo": {
        "title": {
            "en": "Sint reiciendis laudantium deleniti voluptatem aliquid molestiae sint sit."
        },
        "description": {
            "en": "Sint enim tempora id est. Id similique sequi aspernatur consequatur. Qui at est atque ut eum ipsum. Perferendis nostrum dicta odit unde."
        },
        "url": {
            "en": "http://lind.org/"
        }
    }
}
Version update available Please adjust your integration to the latest stable version (1.9.0)
0.2.1 stable