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/18 HTTP/1.1
Host: api.bakeronline.be
X-VERSION: 1.5.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: 13573

{
    "name": "Shawn Wisozk Sr.",
    "description": {
        "nl": "...",
        "en": "...",
        "fr": "..."
    },
    "active": true,
    "only_order_in_store": false,
    "products": [
        {
            "name": {
                "nl": "...",
                "en": "...",
                "fr": "..."
            },
            "description": {
                "nl": "...",
                "en": "...",
                "fr": "..."
            },
            "specialty": true,
            "active": false,
            "only_order_in_store": false,
            "price_type": "PER_UNIT",
            "price": 11,
            "target_price": true,
            "url_type": "none",
            "url": "https://example.com",
            "min_max": {
                "amount": {
                    "minimum": 14,
                    "maximum": 15,
                    "maximum_day": 16,
                    "maximum_week": 16
                },
                "weight": {
                    "minimum": 13,
                    "maximum": 15,
                    "maximum_day": 16,
                    "maximum_week": 10,
                    "suggested": 18
                },
                "persons": {
                    "minimum": 17,
                    "maximum": 19
                }
            },
            "id": 11,
            "allergens": [
                {
                    "id": 11,
                    "name": "Fish"
                },
                {
                    "id": 16,
                    "name": "Egg"
                },
                {
                    "id": 18,
                    "name": "Nuts"
                }
            ],
            "category_id": 16,
            "price_look_up_code": "...",
            "code": "...",
            "seo": {
                "title": {
                    "en": "Dolore sed minima rerum placeat eligendi corporis odio."
                },
                "description": {
                    "en": "Earum est et at ipsum rerum harum. Porro ut culpa aperiam qui nam eos tenetur voluptatum. Facere animi vel beatae harum consectetur neque molestiae."
                },
                "url": {
                    "en": "http://cartwright.org/quis-vitae-occaecati-aliquid-dolorum-et-laboriosam.html"
                }
            }
        },
        {
            "name": {
                "nl": "...",
                "en": "...",
                "fr": "..."
            },
            "description": {
                "nl": "...",
                "en": "...",
                "fr": "..."
            },
            "specialty": true,
            "active": false,
            "only_order_in_store": true,
            "price_type": "PER_UNIT",
            "price": 19,
            "target_price": false,
            "url_type": "none",
            "url": "https://example.com",
            "min_max": {
                "amount": {
                    "minimum": 12,
                    "maximum": 15,
                    "maximum_day": 13,
                    "maximum_week": 11
                },
                "weight": {
                    "minimum": 19,
                    "maximum": 15,
                    "maximum_day": 18,
                    "maximum_week": 16,
                    "suggested": 17
                },
                "persons": {
                    "minimum": 15,
                    "maximum": 17
                }
            },
            "id": 18,
            "allergens": [
                {
                    "id": 13,
                    "name": "Nuts"
                },
                {
                    "id": 11,
                    "name": "Nuts"
                },
                {
                    "id": 16,
                    "name": "Milk"
                }
            ],
            "category_id": 13,
            "price_look_up_code": "...",
            "code": "...",
            "seo": {
                "title": {
                    "en": "Error quia consequatur quisquam ut quod dolore nihil deserunt."
                },
                "description": {
                    "en": "Commodi aut id voluptatibus earum sequi doloribus non. Cum iure ea ducimus aut aut. Tenetur beatae quibusdam est cum et perspiciatis."
                },
                "url": {
                    "en": "http://www.fahey.com/fuga-enim-omnis-unde-ipsum.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": false,
            "url_type": "none",
            "url": "https://example.com",
            "min_max": {
                "amount": {
                    "minimum": 18,
                    "maximum": 19,
                    "maximum_day": 14,
                    "maximum_week": 11
                },
                "weight": {
                    "minimum": 15,
                    "maximum": 11,
                    "maximum_day": 16,
                    "maximum_week": 18,
                    "suggested": 19
                },
                "persons": {
                    "minimum": 19,
                    "maximum": 15
                }
            },
            "id": 15,
            "allergens": [
                {
                    "id": 13,
                    "name": "Peanut"
                },
                {
                    "id": 11,
                    "name": "Peanut"
                },
                {
                    "id": 16,
                    "name": "Gluten"
                }
            ],
            "category_id": 19,
            "price_look_up_code": "...",
            "code": "...",
            "seo": {
                "title": {
                    "en": "Tenetur quia qui architecto at necessitatibus enim saepe et expedita molestiae maiores."
                },
                "description": {
                    "en": "Doloribus velit ratione harum ut. Et est ullam adipisci."
                },
                "url": {
                    "en": "http://www.lehner.com/"
                }
            }
        }
    ],
    "shops": [
        {
            "name": "Vivienne Zboncak",
            "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,
            "allow_invoices": false,
            "allow_order_comments": false,
            "allow_product_comments": true,
            "takeout_use_intervals": false,
            "id": 16,
            "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": "Miss Karianne Ryan",
            "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,
            "allow_invoices": true,
            "allow_order_comments": false,
            "allow_product_comments": false,
            "takeout_use_intervals": true,
            "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": false
            }
        },
        {
            "name": "Freda Anderson",
            "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": false,
            "delivery_use_intervals": false,
            "allow_invoices": false,
            "allow_order_comments": false,
            "allow_product_comments": false,
            "takeout_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": 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": 12,
    "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": "Perferendis aut necessitatibus nihil amet ipsum molestias ea."
        },
        "description": {
            "en": "Sed quasi quibusdam rerum nesciunt voluptatem. Ullam sint et illum. Sit dolorum nam et numquam eos. Molestiae deleniti veniam quos voluptatem sint neque iste."
        },
        "url": {
            "en": "http://stamm.com/"
        }
    }
}
Version update available Please adjust your integration to the latest stable version (1.9.0)
1.5.2 stable