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: 0.2.2
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: 13170

{
    "name": "Fay Hartmann MD",
    "description": {
        "nl": "...",
        "en": "...",
        "fr": "..."
    },
    "active": false,
    "only_order_in_store": false,
    "products": [
        {
            "name": {
                "nl": "...",
                "en": "...",
                "fr": "..."
            },
            "description": {
                "nl": "...",
                "en": "...",
                "fr": "..."
            },
            "specialty": false,
            "active": true,
            "only_order_in_store": true,
            "price_type": "PER_UNIT",
            "price": 14,
            "target_price": false,
            "url_type": "none",
            "url": "https://example.com",
            "min_max": {
                "amount": {
                    "minimum": 14,
                    "maximum": 16,
                    "maximum_day": 11,
                    "maximum_week": 18
                },
                "weight": {
                    "minimum": 18,
                    "maximum": 19,
                    "maximum_day": 10,
                    "maximum_week": 15,
                    "suggested": 14
                },
                "persons": {
                    "minimum": 16,
                    "maximum": 17
                }
            },
            "id": 18,
            "allergens": [
                {
                    "id": 10,
                    "name": "Sulphite"
                },
                {
                    "id": 14,
                    "name": "Gluten"
                },
                {
                    "id": 16,
                    "name": "Soy"
                }
            ],
            "price_look_up_code": "...",
            "seo": {
                "title": {
                    "en": "Sit repellat quis vel sint nobis perferendis eligendi temporibus amet."
                },
                "description": {
                    "en": "Magnam alias non nobis laborum molestiae. Magnam voluptatem libero voluptatibus optio laudantium soluta. Qui illum omnis deleniti nulla et minus. A quaerat aut debitis labore earum voluptates."
                },
                "url": {
                    "en": "http://legros.org/consequatur-veniam-pariatur-quia-nemo"
                }
            }
        },
        {
            "name": {
                "nl": "...",
                "en": "...",
                "fr": "..."
            },
            "description": {
                "nl": "...",
                "en": "...",
                "fr": "..."
            },
            "specialty": false,
            "active": true,
            "only_order_in_store": false,
            "price_type": "PER_UNIT",
            "price": 13,
            "target_price": true,
            "url_type": "none",
            "url": "https://example.com",
            "min_max": {
                "amount": {
                    "minimum": 10,
                    "maximum": 10,
                    "maximum_day": 13,
                    "maximum_week": 11
                },
                "weight": {
                    "minimum": 10,
                    "maximum": 17,
                    "maximum_day": 15,
                    "maximum_week": 19,
                    "suggested": 14
                },
                "persons": {
                    "minimum": 12,
                    "maximum": 13
                }
            },
            "id": 18,
            "allergens": [
                {
                    "id": 12,
                    "name": "Lupine"
                },
                {
                    "id": 13,
                    "name": "Mustard"
                },
                {
                    "id": 11,
                    "name": "Fish"
                }
            ],
            "price_look_up_code": "...",
            "seo": {
                "title": {
                    "en": "Nobis id vero sequi esse corporis aut."
                },
                "description": {
                    "en": "Porro est voluptas soluta aperiam ad. Repellat minima et omnis aut nemo atque fuga labore. Eos officiis possimus soluta aut et. Aliquam veniam voluptatem omnis corrupti porro qui dicta."
                },
                "url": {
                    "en": "http://bosco.biz/aut-aut-nulla-eveniet-perferendis-voluptate-commodi-animi-explicabo.html"
                }
            }
        },
        {
            "name": {
                "nl": "...",
                "en": "...",
                "fr": "..."
            },
            "description": {
                "nl": "...",
                "en": "...",
                "fr": "..."
            },
            "specialty": false,
            "active": true,
            "only_order_in_store": false,
            "price_type": "PER_UNIT",
            "price": 10,
            "target_price": true,
            "url_type": "none",
            "url": "https://example.com",
            "min_max": {
                "amount": {
                    "minimum": 14,
                    "maximum": 15,
                    "maximum_day": 11,
                    "maximum_week": 10
                },
                "weight": {
                    "minimum": 10,
                    "maximum": 11,
                    "maximum_day": 17,
                    "maximum_week": 12,
                    "suggested": 15
                },
                "persons": {
                    "minimum": 11,
                    "maximum": 19
                }
            },
            "id": 13,
            "allergens": [
                {
                    "id": 11,
                    "name": "Milk"
                },
                {
                    "id": 19,
                    "name": "Lupine"
                },
                {
                    "id": 11,
                    "name": "Fish"
                }
            ],
            "price_look_up_code": "...",
            "seo": {
                "title": {
                    "en": "In necessitatibus voluptas totam aut."
                },
                "description": {
                    "en": "Numquam nesciunt maxime pariatur ipsa porro facilis. At optio sit quaerat dolores. Qui iusto voluptatem reprehenderit dignissimos dolore explicabo nihil. Sunt molestiae earum est laborum laboriosam."
                },
                "url": {
                    "en": "http://dickens.com/maiores-ad-rem-tenetur-iusto-qui-iusto"
                }
            }
        }
    ],
    "shops": [
        {
            "name": "Isidro Feest",
            "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": "Jovan Smith",
            "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": 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": false
            }
        },
        {
            "name": "Kelton Hermann",
            "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": 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
            }
        }
    ],
    "id": 11,
    "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": "Similique suscipit maiores autem omnis ut eos nam voluptate possimus."
        },
        "description": {
            "en": "Sapiente possimus ut sed. Labore iste tenetur culpa tempore optio quisquam. Error illo tenetur molestiae sed quibusdam qui."
        },
        "url": {
            "en": "http://www.frami.info/sunt-occaecati-voluptas-ipsum-eaque-sequi-cumque-impedit-maxime.html"
        }
    }
}
Version update available Please adjust your integration to the latest stable version (1.9.0)
0.2.2 stable