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.4.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: 13278

{
    "name": "Sandra Ondricka PhD",
    "description": {
        "nl": "...",
        "en": "...",
        "fr": "..."
    },
    "active": true,
    "only_order_in_store": true,
    "products": [
        {
            "name": {
                "nl": "...",
                "en": "...",
                "fr": "..."
            },
            "description": {
                "nl": "...",
                "en": "...",
                "fr": "..."
            },
            "specialty": true,
            "active": true,
            "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": 14,
                    "maximum_day": 19,
                    "maximum_week": 10
                },
                "weight": {
                    "minimum": 12,
                    "maximum": 13,
                    "maximum_day": 17,
                    "maximum_week": 19,
                    "suggested": 15
                },
                "persons": {
                    "minimum": 17,
                    "maximum": 10
                }
            },
            "id": 13,
            "allergens": [
                {
                    "id": 11,
                    "name": "Fish"
                },
                {
                    "id": 13,
                    "name": "Celery"
                },
                {
                    "id": 10,
                    "name": "Celery"
                }
            ],
            "category_id": 11,
            "price_look_up_code": "...",
            "code": "...",
            "seo": {
                "title": {
                    "en": "Quas vitae dolor autem amet vel ab optio sit eum autem."
                },
                "description": {
                    "en": "Beatae explicabo quo quia neque. Dolorum in cumque odio non. Doloremque dolore quasi molestiae molestiae. Minus atque voluptas quam adipisci molestias."
                },
                "url": {
                    "en": "http://altenwerth.com/quae-facere-qui-reprehenderit-eius-dolor-beatae-molestias"
                }
            }
        },
        {
            "name": {
                "nl": "...",
                "en": "...",
                "fr": "..."
            },
            "description": {
                "nl": "...",
                "en": "...",
                "fr": "..."
            },
            "specialty": true,
            "active": true,
            "only_order_in_store": true,
            "price_type": "PER_UNIT",
            "price": 14,
            "target_price": true,
            "url_type": "none",
            "url": "https://example.com",
            "min_max": {
                "amount": {
                    "minimum": 10,
                    "maximum": 19,
                    "maximum_day": 13,
                    "maximum_week": 11
                },
                "weight": {
                    "minimum": 12,
                    "maximum": 19,
                    "maximum_day": 12,
                    "maximum_week": 10,
                    "suggested": 16
                },
                "persons": {
                    "minimum": 19,
                    "maximum": 16
                }
            },
            "id": 15,
            "allergens": [
                {
                    "id": 10,
                    "name": "Gluten"
                },
                {
                    "id": 14,
                    "name": "Fish"
                },
                {
                    "id": 16,
                    "name": "Nuts"
                }
            ],
            "category_id": 19,
            "price_look_up_code": "...",
            "code": "...",
            "seo": {
                "title": {
                    "en": "Est deserunt facere quod iure aut placeat."
                },
                "description": {
                    "en": "Et dolore sit veniam id consectetur aut quibusdam. Earum laboriosam eos sit omnis consequatur nulla. Perferendis dolorum doloribus distinctio repellat."
                },
                "url": {
                    "en": "http://www.mohr.org/non-rem-et-est-voluptatem-qui-facilis-aliquid.html"
                }
            }
        },
        {
            "name": {
                "nl": "...",
                "en": "...",
                "fr": "..."
            },
            "description": {
                "nl": "...",
                "en": "...",
                "fr": "..."
            },
            "specialty": false,
            "active": true,
            "only_order_in_store": false,
            "price_type": "PER_UNIT",
            "price": 18,
            "target_price": false,
            "url_type": "none",
            "url": "https://example.com",
            "min_max": {
                "amount": {
                    "minimum": 14,
                    "maximum": 16,
                    "maximum_day": 15,
                    "maximum_week": 14
                },
                "weight": {
                    "minimum": 19,
                    "maximum": 17,
                    "maximum_day": 15,
                    "maximum_week": 14,
                    "suggested": 17
                },
                "persons": {
                    "minimum": 13,
                    "maximum": 19
                }
            },
            "id": 16,
            "allergens": [
                {
                    "id": 18,
                    "name": "Crustaceans"
                },
                {
                    "id": 16,
                    "name": "Peanut"
                },
                {
                    "id": 16,
                    "name": "Gluten"
                }
            ],
            "category_id": 15,
            "price_look_up_code": "...",
            "code": "...",
            "seo": {
                "title": {
                    "en": "Fugit dolores voluptatem est voluptatem ea ullam excepturi quia omnis asperiores."
                },
                "description": {
                    "en": "Ut quibusdam tempora expedita et aspernatur rem animi et. Soluta temporibus aspernatur impedit."
                },
                "url": {
                    "en": "http://gorczany.org/ducimus-minima-odit-amet-quos-nesciunt.html"
                }
            }
        }
    ],
    "shops": [
        {
            "name": "Ofelia Schoen",
            "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": true,
            "delivery_use_intervals": false,
            "id": 11,
            "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": "Mrs. Cecelia Breitenberg",
            "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": true,
            "delivery_use_intervals": true,
            "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": false
            }
        },
        {
            "name": "Mr. Cristina Lubowitz",
            "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": 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": 16,
    "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": "Modi molestiae omnis vero accusantium sed veritatis totam enim voluptas nulla expedita."
        },
        "description": {
            "en": "Maiores facilis qui officiis unde. Ex nostrum ipsa et vero. Ipsam deserunt inventore qui id hic. Id necessitatibus numquam suscipit consequatur ipsum recusandae sunt omnis."
        },
        "url": {
            "en": "http://www.marvin.com/numquam-velit-dolorem-explicabo-nemo-possimus"
        }
    }
}
Version update available Please adjust your integration to the latest stable version (1.9.0)
1.4.0 stable