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/14 HTTP/1.1
Host: api.bakeronline.be
X-VERSION: 1.1.0
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: 13277

{
    "name": "Miss Laury Bailey Jr.",
    "description": {
        "nl": "...",
        "en": "...",
        "fr": "..."
    },
    "active": true,
    "only_order_in_store": false,
    "products": [
        {
            "name": {
                "nl": "...",
                "en": "...",
                "fr": "..."
            },
            "description": {
                "nl": "...",
                "en": "...",
                "fr": "..."
            },
            "specialty": true,
            "active": true,
            "only_order_in_store": false,
            "price_type": "PER_UNIT",
            "price": 16,
            "target_price": false,
            "url_type": "none",
            "url": "https://example.com",
            "min_max": {
                "amount": {
                    "minimum": 13,
                    "maximum": 13,
                    "maximum_day": 10,
                    "maximum_week": 14
                },
                "weight": {
                    "minimum": 12,
                    "maximum": 13,
                    "maximum_day": 19,
                    "maximum_week": 14,
                    "suggested": 15
                },
                "persons": {
                    "minimum": 19,
                    "maximum": 16
                }
            },
            "id": 19,
            "allergens": [
                {
                    "id": 11,
                    "name": "Fish"
                },
                {
                    "id": 15,
                    "name": "Mollusc"
                },
                {
                    "id": 17,
                    "name": "Gluten"
                }
            ],
            "category_id": 10,
            "price_look_up_code": "...",
            "seo": {
                "title": {
                    "en": "Quo enim ratione itaque molestias."
                },
                "description": {
                    "en": "Nihil maiores numquam eum mollitia. Tempore neque dolores non voluptatum assumenda. Asperiores consequatur magnam voluptas quod maxime libero."
                },
                "url": {
                    "en": "http://www.willms.org/qui-occaecati-et-voluptas-pariatur-in-reprehenderit-tempora"
                }
            },
            "code": "..."
        },
        {
            "name": {
                "nl": "...",
                "en": "...",
                "fr": "..."
            },
            "description": {
                "nl": "...",
                "en": "...",
                "fr": "..."
            },
            "specialty": false,
            "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": 19,
                    "maximum_day": 10,
                    "maximum_week": 16
                },
                "weight": {
                    "minimum": 16,
                    "maximum": 12,
                    "maximum_day": 12,
                    "maximum_week": 10,
                    "suggested": 13
                },
                "persons": {
                    "minimum": 15,
                    "maximum": 17
                }
            },
            "id": 11,
            "allergens": [
                {
                    "id": 15,
                    "name": "Mollusc"
                },
                {
                    "id": 19,
                    "name": "Egg"
                },
                {
                    "id": 11,
                    "name": "Soy"
                }
            ],
            "category_id": 17,
            "price_look_up_code": "...",
            "seo": {
                "title": {
                    "en": "Veniam omnis excepturi libero quia iusto aut provident voluptatibus."
                },
                "description": {
                    "en": "Ad eius iure dolores corrupti quod ut. Voluptatem nam mollitia non reprehenderit nobis. Rerum voluptatibus similique illo temporibus sed nobis. Ratione est quam praesentium veniam autem iusto et."
                },
                "url": {
                    "en": "https://www.bogan.net/nulla-eaque-non-tempora-et-fuga-laudantium"
                }
            },
            "code": "..."
        },
        {
            "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": false,
            "url_type": "none",
            "url": "https://example.com",
            "min_max": {
                "amount": {
                    "minimum": 12,
                    "maximum": 16,
                    "maximum_day": 17,
                    "maximum_week": 17
                },
                "weight": {
                    "minimum": 15,
                    "maximum": 14,
                    "maximum_day": 19,
                    "maximum_week": 15,
                    "suggested": 11
                },
                "persons": {
                    "minimum": 19,
                    "maximum": 10
                }
            },
            "id": 15,
            "allergens": [
                {
                    "id": 19,
                    "name": "Milk"
                },
                {
                    "id": 13,
                    "name": "Milk"
                },
                {
                    "id": 14,
                    "name": "Sesame"
                }
            ],
            "category_id": 17,
            "price_look_up_code": "...",
            "seo": {
                "title": {
                    "en": "Optio asperiores quisquam sint aut unde soluta ad libero earum placeat."
                },
                "description": {
                    "en": "Quae mollitia quam necessitatibus rerum ipsam dolor asperiores. Id qui id vel iure et iste dolorem earum. Saepe autem repellat iusto similique adipisci repellat voluptatem."
                },
                "url": {
                    "en": "http://www.crona.com/fugit-iusto-perspiciatis-ad-cum-similique-deserunt-nobis"
                }
            },
            "code": "..."
        }
    ],
    "shops": [
        {
            "name": "Earline Swift",
            "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": 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": "Alexzander Jakubowski IV",
            "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": 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": 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
            }
        },
        {
            "name": "Vivienne Bartell",
            "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": 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": 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
            }
        }
    ],
    "id": 17,
    "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": "Molestiae officia voluptates voluptas at eum saepe harum."
        },
        "description": {
            "en": "Voluptatibus alias laboriosam officiis ipsa tempore vero sed. Deleniti eum quod labore repellat ut sed. Ex porro quisquam minima non provident."
        },
        "url": {
            "en": "http://ortiz.com/"
        }
    }
}
Version update available Please adjust your integration to the latest stable version (1.9.0)
1.1.0 stable