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/17 HTTP/1.1
Host: api.bakeronline.be
X-VERSION: 1.0.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: 13193

{
    "name": "Dion Heller",
    "description": {
        "nl": "...",
        "en": "...",
        "fr": "..."
    },
    "active": false,
    "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": 18,
            "target_price": false,
            "url_type": "none",
            "url": "https://example.com",
            "min_max": {
                "amount": {
                    "minimum": 16,
                    "maximum": 19,
                    "maximum_day": 14,
                    "maximum_week": 18
                },
                "weight": {
                    "minimum": 13,
                    "maximum": 17,
                    "maximum_day": 10,
                    "maximum_week": 17,
                    "suggested": 11
                },
                "persons": {
                    "minimum": 16,
                    "maximum": 16
                }
            },
            "id": 18,
            "allergens": [
                {
                    "id": 16,
                    "name": "Peanut"
                },
                {
                    "id": 11,
                    "name": "Mollusc"
                },
                {
                    "id": 17,
                    "name": "Sesame"
                }
            ],
            "category_id": 19,
            "price_look_up_code": "...",
            "seo": {
                "title": {
                    "en": "Mollitia deserunt doloremque reprehenderit explicabo non molestiae dolore."
                },
                "description": {
                    "en": "Fugiat iste corrupti aut exercitationem. Quae expedita ea est alias ut."
                },
                "url": {
                    "en": "http://okeefe.com/exercitationem-sed-est-ut-laborum-quibusdam-delectus-libero"
                }
            },
            "code": "..."
        },
        {
            "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": true,
            "url_type": "none",
            "url": "https://example.com",
            "min_max": {
                "amount": {
                    "minimum": 12,
                    "maximum": 12,
                    "maximum_day": 18,
                    "maximum_week": 16
                },
                "weight": {
                    "minimum": 11,
                    "maximum": 18,
                    "maximum_day": 16,
                    "maximum_week": 10,
                    "suggested": 11
                },
                "persons": {
                    "minimum": 17,
                    "maximum": 16
                }
            },
            "id": 16,
            "allergens": [
                {
                    "id": 15,
                    "name": "Mustard"
                },
                {
                    "id": 10,
                    "name": "Nuts"
                },
                {
                    "id": 11,
                    "name": "Lupine"
                }
            ],
            "category_id": 13,
            "price_look_up_code": "...",
            "seo": {
                "title": {
                    "en": "Enim error quis ut id culpa vel repellat reiciendis a."
                },
                "description": {
                    "en": "Facilis optio unde pariatur doloribus. Sequi facilis dicta voluptatem velit. Eum modi reiciendis accusantium at velit qui et."
                },
                "url": {
                    "en": "http://www.nader.info/"
                }
            },
            "code": "..."
        },
        {
            "name": {
                "nl": "...",
                "en": "...",
                "fr": "..."
            },
            "description": {
                "nl": "...",
                "en": "...",
                "fr": "..."
            },
            "specialty": false,
            "active": true,
            "only_order_in_store": false,
            "price_type": "PER_UNIT",
            "price": 19,
            "target_price": false,
            "url_type": "none",
            "url": "https://example.com",
            "min_max": {
                "amount": {
                    "minimum": 10,
                    "maximum": 13,
                    "maximum_day": 14,
                    "maximum_week": 13
                },
                "weight": {
                    "minimum": 11,
                    "maximum": 17,
                    "maximum_day": 15,
                    "maximum_week": 10,
                    "suggested": 17
                },
                "persons": {
                    "minimum": 17,
                    "maximum": 17
                }
            },
            "id": 13,
            "allergens": [
                {
                    "id": 13,
                    "name": "Milk"
                },
                {
                    "id": 19,
                    "name": "Sulphite"
                },
                {
                    "id": 13,
                    "name": "Mollusc"
                }
            ],
            "category_id": 16,
            "price_look_up_code": "...",
            "seo": {
                "title": {
                    "en": "Saepe eos provident dolor officia facere enim mollitia."
                },
                "description": {
                    "en": "Consectetur aut excepturi ad inventore illum voluptatum voluptatem. Ut consequuntur ea consequatur explicabo ea sed temporibus. Molestias vel doloribus nulla neque qui beatae. Est occaecati et aut."
                },
                "url": {
                    "en": "http://raynor.com/iure-et-officia-nostrum-itaque"
                }
            },
            "code": "..."
        }
    ],
    "shops": [
        {
            "name": "Dr. Jerald Thiel Sr.",
            "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": false,
            "delivery_use_intervals": 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
                    }
                ],
                "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": "Jasper Gutmann",
            "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": 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": 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": "Rubye O'Reilly",
            "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": 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
                    }
                ],
                "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": 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": "Voluptas optio nihil ut corporis non ab quas facere quos ipsa."
        },
        "description": {
            "en": "Expedita velit dolor repudiandae aliquam tempore. Quis dolorem quia impedit impedit. Atque id qui eum voluptatem doloremque. Nisi in odit ut eos ut assumenda quaerat."
        },
        "url": {
            "en": "http://cormier.org/nam-sint-voluptates-velit-voluptates-tempore-culpa-consectetur.html"
        }
    }
}
Version update available Please adjust your integration to the latest stable version (1.9.0)
1.0.0 stable