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.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: 13069

{
    "name": "Miss Kasey Frami",
    "description": {
        "nl": "...",
        "en": "...",
        "fr": "..."
    },
    "active": true,
    "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": 10,
            "target_price": false,
            "url_type": "none",
            "url": "https://example.com",
            "min_max": {
                "amount": {
                    "minimum": 10,
                    "maximum": 15,
                    "maximum_day": 18,
                    "maximum_week": 10
                },
                "weight": {
                    "minimum": 16,
                    "maximum": 15,
                    "maximum_day": 19,
                    "maximum_week": 16,
                    "suggested": 11
                },
                "persons": {
                    "minimum": 18,
                    "maximum": 13
                }
            },
            "id": 18,
            "allergens": [
                {
                    "id": 13,
                    "name": "Crustaceans"
                },
                {
                    "id": 11,
                    "name": "Mustard"
                },
                {
                    "id": 16,
                    "name": "Lupine"
                }
            ],
            "price_look_up_code": "...",
            "seo": {
                "title": {
                    "en": "Consectetur veniam totam ratione aperiam quia corrupti vitae."
                },
                "description": {
                    "en": "Alias cum officia ea nemo quod totam. Autem velit aut provident quia. Nobis numquam odio rerum tempora corrupti nihil vel. Voluptatem consequatur minima sunt et quaerat laborum."
                },
                "url": {
                    "en": "https://skiles.com/dolor-perspiciatis-commodi-eaque-vitae.html"
                }
            }
        },
        {
            "name": {
                "nl": "...",
                "en": "...",
                "fr": "..."
            },
            "description": {
                "nl": "...",
                "en": "...",
                "fr": "..."
            },
            "specialty": true,
            "active": false,
            "only_order_in_store": true,
            "price_type": "PER_UNIT",
            "price": 17,
            "target_price": true,
            "url_type": "none",
            "url": "https://example.com",
            "min_max": {
                "amount": {
                    "minimum": 16,
                    "maximum": 12,
                    "maximum_day": 11,
                    "maximum_week": 18
                },
                "weight": {
                    "minimum": 15,
                    "maximum": 15,
                    "maximum_day": 19,
                    "maximum_week": 15,
                    "suggested": 15
                },
                "persons": {
                    "minimum": 11,
                    "maximum": 16
                }
            },
            "id": 12,
            "allergens": [
                {
                    "id": 13,
                    "name": "Peanut"
                },
                {
                    "id": 14,
                    "name": "Lupine"
                },
                {
                    "id": 12,
                    "name": "Soy"
                }
            ],
            "price_look_up_code": "...",
            "seo": {
                "title": {
                    "en": "Accusantium quod earum ut ut inventore ut eveniet et doloribus."
                },
                "description": {
                    "en": "Laboriosam quisquam odit omnis tenetur repellat facere. Molestias sit tempore quis tempora et optio. Nisi minima omnis eos repellat nobis."
                },
                "url": {
                    "en": "https://shanahan.com/fuga-omnis-blanditiis-repudiandae.html"
                }
            }
        },
        {
            "name": {
                "nl": "...",
                "en": "...",
                "fr": "..."
            },
            "description": {
                "nl": "...",
                "en": "...",
                "fr": "..."
            },
            "specialty": false,
            "active": false,
            "only_order_in_store": true,
            "price_type": "PER_UNIT",
            "price": 10,
            "target_price": true,
            "url_type": "none",
            "url": "https://example.com",
            "min_max": {
                "amount": {
                    "minimum": 13,
                    "maximum": 12,
                    "maximum_day": 14,
                    "maximum_week": 11
                },
                "weight": {
                    "minimum": 18,
                    "maximum": 19,
                    "maximum_day": 16,
                    "maximum_week": 16,
                    "suggested": 13
                },
                "persons": {
                    "minimum": 14,
                    "maximum": 19
                }
            },
            "id": 15,
            "allergens": [
                {
                    "id": 14,
                    "name": "Lactose"
                },
                {
                    "id": 11,
                    "name": "Crustaceans"
                },
                {
                    "id": 14,
                    "name": "Sulphite"
                }
            ],
            "price_look_up_code": "...",
            "seo": {
                "title": {
                    "en": "Dolor perspiciatis officiis reiciendis dolor asperiores iure corporis."
                },
                "description": {
                    "en": "Quia qui eum inventore consequatur architecto et ad. Sed nisi itaque et provident non similique molestiae. Neque aliquid saepe voluptas nemo et dolores."
                },
                "url": {
                    "en": "http://www.ernser.com/ipsam-et-in-magni-ratione-quia-eaque-omnis.html"
                }
            }
        }
    ],
    "shops": [
        {
            "name": "Rae Rice",
            "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": 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": "Regan Runolfsson",
            "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": false,
            "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": "Providenci Murphy",
            "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,
            "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
            }
        }
    ],
    "id": 18,
    "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": "Asperiores quo velit aperiam rem debitis porro aspernatur aliquid."
        },
        "description": {
            "en": "Iure nobis nulla et a exercitationem et. Culpa iste iusto nihil. Omnis qui culpa est."
        },
        "url": {
            "en": "http://oberbrunner.com/aut-vel-odio-illum-mollitia-illum-quos-laborum-saepe.html"
        }
    }
}
Version update available Please adjust your integration to the latest stable version (1.9.0)
0.2.0 stable