Get category by id

GET /shops/@shop/categories/@id

Request

Optional authentication

You can use authentication for this request, but it is not required. Always provide the access_token when you have one. It may affect the response.

Header Value
Authorization Optional. 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
shop Int An integer value
id Int An integer value

Example request 1

GET /shops/11/categories/15 HTTP/1.1
Host: api.bakeronline.be
X-VERSION: 1.1.0
Accept-Language: en-US,en;q=0.5

Response

Field Type Description
id Int Id of the category
name String Translated category name
banner Image? Nullable.
messages [String] Array of String
products [Product.detailed] Array of Product.detailed
seo company.SeoData Optional. Product page SEO metatags

Example response 1

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: 21252

{
    "id": 14,
    "name": "Prof. Fernando Hettinger I",
    "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
    },
    "messages": [
        "...",
        "...",
        "..."
    ],
    "products": [
        {
            "id": 12,
            "name": "...",
            "images": [
                {
                    "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
                },
                {
                    "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
                },
                {
                    "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
                }
            ],
            "price_type": "PER_UNIT",
            "target_price": true,
            "price": 10,
            "subtitle": "...",
            "description": "...",
            "allergens": [
                {
                    "id": 11,
                    "name": "Sesame"
                },
                {
                    "id": 10,
                    "name": "Gluten"
                },
                {
                    "id": 18,
                    "name": "Egg"
                }
            ],
            "url": "https://example.com",
            "url_type": "none",
            "specialty": false,
            "favourite": false,
            "product_prices": [
                {
                    "id": 16,
                    "name": "...",
                    "price": 18
                },
                {
                    "id": 12,
                    "name": "...",
                    "price": 16
                },
                {
                    "id": 12,
                    "name": "...",
                    "price": 16
                }
            ],
            "optionsets": [
                {
                    "id": 12,
                    "name": "...",
                    "allow_attachment": false,
                    "options": [
                        {
                            "id": 15,
                            "name": "...",
                            "price_change": 19
                        },
                        {
                            "id": 14,
                            "name": "...",
                            "price_change": 15
                        },
                        {
                            "id": 12,
                            "name": "...",
                            "price_change": 18
                        }
                    ]
                },
                {
                    "id": 14,
                    "name": "...",
                    "allow_attachment": false,
                    "options": [
                        {
                            "id": 13,
                            "name": "...",
                            "price_change": 17
                        },
                        {
                            "id": 12,
                            "name": "...",
                            "price_change": 14
                        },
                        {
                            "id": 13,
                            "name": "...",
                            "price_change": 14
                        }
                    ]
                },
                {
                    "id": 11,
                    "name": "...",
                    "allow_attachment": true,
                    "options": [
                        {
                            "id": 13,
                            "name": "...",
                            "price_change": 13
                        },
                        {
                            "id": 13,
                            "name": "...",
                            "price_change": 18
                        },
                        {
                            "id": 13,
                            "name": "...",
                            "price_change": 12
                        }
                    ]
                }
            ],
            "min_max": {
                "amount": {
                    "minimum": 15,
                    "maximum": 10,
                    "suggested": 19
                },
                "weight": {
                    "minimum": 14,
                    "maximum": 10,
                    "suggested": 13
                },
                "persons": {
                    "minimum": 16,
                    "maximum": 17,
                    "suggested": 15
                }
            },
            "info": [
                {
                    "name": "...",
                    "title": "...",
                    "text": "...",
                    "type": "HTML"
                },
                {
                    "name": "...",
                    "title": "...",
                    "text": "...",
                    "type": "HTML"
                },
                {
                    "name": "...",
                    "title": "...",
                    "text": "...",
                    "type": "HTML"
                }
            ]
        },
        {
            "id": 10,
            "name": "...",
            "images": [
                {
                    "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
                },
                {
                    "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
                },
                {
                    "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
                }
            ],
            "price_type": "PER_UNIT",
            "target_price": false,
            "price": 18,
            "subtitle": "...",
            "description": "...",
            "allergens": [
                {
                    "id": 15,
                    "name": "Mustard"
                },
                {
                    "id": 17,
                    "name": "Crustaceans"
                },
                {
                    "id": 16,
                    "name": "Lactose"
                }
            ],
            "url": "https://example.com",
            "url_type": "none",
            "specialty": true,
            "favourite": true,
            "product_prices": [
                {
                    "id": 15,
                    "name": "...",
                    "price": 18
                },
                {
                    "id": 16,
                    "name": "...",
                    "price": 14
                },
                {
                    "id": 12,
                    "name": "...",
                    "price": 12
                }
            ],
            "optionsets": [
                {
                    "id": 11,
                    "name": "...",
                    "allow_attachment": false,
                    "options": [
                        {
                            "id": 17,
                            "name": "...",
                            "price_change": 14
                        },
                        {
                            "id": 17,
                            "name": "...",
                            "price_change": 17
                        },
                        {
                            "id": 16,
                            "name": "...",
                            "price_change": 18
                        }
                    ]
                },
                {
                    "id": 18,
                    "name": "...",
                    "allow_attachment": false,
                    "options": [
                        {
                            "id": 16,
                            "name": "...",
                            "price_change": 13
                        },
                        {
                            "id": 13,
                            "name": "...",
                            "price_change": 19
                        },
                        {
                            "id": 12,
                            "name": "...",
                            "price_change": 13
                        }
                    ]
                },
                {
                    "id": 17,
                    "name": "...",
                    "allow_attachment": false,
                    "options": [
                        {
                            "id": 16,
                            "name": "...",
                            "price_change": 11
                        },
                        {
                            "id": 13,
                            "name": "...",
                            "price_change": 13
                        },
                        {
                            "id": 10,
                            "name": "...",
                            "price_change": 15
                        }
                    ]
                }
            ],
            "min_max": {
                "amount": {
                    "minimum": 10,
                    "maximum": 12,
                    "suggested": 12
                },
                "weight": {
                    "minimum": 17,
                    "maximum": 14,
                    "suggested": 16
                },
                "persons": {
                    "minimum": 13,
                    "maximum": 17,
                    "suggested": 17
                }
            },
            "info": [
                {
                    "name": "...",
                    "title": "...",
                    "text": "...",
                    "type": "HTML"
                },
                {
                    "name": "...",
                    "title": "...",
                    "text": "...",
                    "type": "HTML"
                },
                {
                    "name": "...",
                    "title": "...",
                    "text": "...",
                    "type": "HTML"
                }
            ]
        },
        {
            "id": 12,
            "name": "...",
            "images": [
                {
                    "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
                },
                {
                    "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
                },
                {
                    "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
                }
            ],
            "price_type": "PER_UNIT",
            "target_price": false,
            "price": 16,
            "subtitle": "...",
            "description": "...",
            "allergens": [
                {
                    "id": 14,
                    "name": "Soy"
                },
                {
                    "id": 15,
                    "name": "Lactose"
                },
                {
                    "id": 19,
                    "name": "Egg"
                }
            ],
            "url": "https://example.com",
            "url_type": "none",
            "specialty": true,
            "favourite": false,
            "product_prices": [
                {
                    "id": 15,
                    "name": "...",
                    "price": 17
                },
                {
                    "id": 18,
                    "name": "...",
                    "price": 17
                },
                {
                    "id": 13,
                    "name": "...",
                    "price": 18
                }
            ],
            "optionsets": [
                {
                    "id": 16,
                    "name": "...",
                    "allow_attachment": false,
                    "options": [
                        {
                            "id": 13,
                            "name": "...",
                            "price_change": 13
                        },
                        {
                            "id": 18,
                            "name": "...",
                            "price_change": 18
                        },
                        {
                            "id": 10,
                            "name": "...",
                            "price_change": 13
                        }
                    ]
                },
                {
                    "id": 12,
                    "name": "...",
                    "allow_attachment": true,
                    "options": [
                        {
                            "id": 18,
                            "name": "...",
                            "price_change": 18
                        },
                        {
                            "id": 18,
                            "name": "...",
                            "price_change": 12
                        },
                        {
                            "id": 16,
                            "name": "...",
                            "price_change": 18
                        }
                    ]
                },
                {
                    "id": 17,
                    "name": "...",
                    "allow_attachment": true,
                    "options": [
                        {
                            "id": 10,
                            "name": "...",
                            "price_change": 16
                        },
                        {
                            "id": 13,
                            "name": "...",
                            "price_change": 12
                        },
                        {
                            "id": 17,
                            "name": "...",
                            "price_change": 13
                        }
                    ]
                }
            ],
            "min_max": {
                "amount": {
                    "minimum": 11,
                    "maximum": 14,
                    "suggested": 17
                },
                "weight": {
                    "minimum": 17,
                    "maximum": 17,
                    "suggested": 13
                },
                "persons": {
                    "minimum": 14,
                    "maximum": 18,
                    "suggested": 10
                }
            },
            "info": [
                {
                    "name": "...",
                    "title": "...",
                    "text": "...",
                    "type": "HTML"
                },
                {
                    "name": "...",
                    "title": "...",
                    "text": "...",
                    "type": "HTML"
                },
                {
                    "name": "...",
                    "title": "...",
                    "text": "...",
                    "type": "HTML"
                }
            ]
        }
    ],
    "seo": {
        "title": {
            "en": "Fuga consequuntur voluptatibus distinctio maxime tempore rerum sed."
        },
        "description": {
            "en": "Nobis a soluta illo. Ipsa ea aspernatur eum cumque. Praesentium suscipit itaque id dolore fugiat."
        },
        "url": {
            "en": "http://www.rowe.org/ut-suscipit-vel-voluptates-voluptas.html"
        }
    }
}
Version update available Please adjust your integration to the latest stable version (1.9.0)
1.1.0 stable