Get shop by id

GET /shops/@id

Request

URL parameters

Replace the @ keywords in the URL with their corresponding value.

A dictionary with fields

Field Type Description
id Int An integer value

Example request 1

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

Response

Field Type Description
id Int Id of the shop
name String Name of the shop (translated)
address Address.detailed An address
allow_comments Bool A boolean value
offers [Offer] Array of Offer
images [String: Image] Dictionary of Image with keys of type String
allow_orders Bool A boolean value
delivery_use_intervals Bool A boolean value
categories [Category.simple] Array of Category.simple
category_groups [CategoryGroup] List of category groups. The ids refer to a category in the categories field. Categories without a CategoryGroup should also get displayed.
hours [MethodHours] Information about the opening hours, delivery hours... for all available methods and machines
contact Contact Contact details of a shop
messages [Message] You are required to keep track of the messages the user saw. When you receive new messages, you should indicate this in the app with a bubble icon (e.g. red circle with number of new messages)
info [Message] Same as messages, but you shouldn't notify the user when this changes or is received for the first time
currency Currency 3 letter ISO 4217 currency name (string)

Example response 1

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

{
    "id": 18,
    "name": "Miss Janie Langworth V",
    "address": {
        "street": "Sint-Denijslaan",
        "nr": "96",
        "zipcode": "9000",
        "city": "Gent",
        "country": "BE",
        "position": {
            "latitude": 1.54361,
            "longitude": 0.45645
        }
    },
    "allow_comments": true,
    "offers": [
        {
            "id": 19,
            "name": "Black Friday"
        },
        {
            "id": 19,
            "name": "Black Friday"
        },
        {
            "id": 16,
            "name": "Black Friday"
        }
    ],
    "images": {
        "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
        }
    },
    "allow_orders": false,
    "delivery_use_intervals": true,
    "categories": [
        {
            "id": 14,
            "name": "Walton Morar",
            "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": "Rerum excepturi quod aliquam similique quis nam.",
                "description": "Est quaerat non possimus est maxime earum. Voluptas sit minima veniam sunt recusandae maiores esse et. Non odio deserunt aperiam rem esse.",
                "url": "http://vonrueden.com/magni-sit-possimus-ut-in"
            }
        },
        {
            "id": 15,
            "name": "Marshall Pollich",
            "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": "Quo et autem distinctio ut dolores rerum autem ut.",
                "description": "Harum ut voluptas id repellendus numquam dolorum. Ut unde optio sed molestiae sed. Est soluta repudiandae aut dignissimos itaque quae necessitatibus.",
                "url": "http://cole.org/odio-ut-aut-consequatur-voluptas-esse-doloribus-corrupti"
            }
        },
        {
            "id": 15,
            "name": "Jocelyn Johnston",
            "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": "Ipsum omnis id ut enim dolores veritatis.",
                "description": "Eveniet ipsum perferendis cum ducimus porro. Aut eveniet non ratione voluptatem. Quaerat omnis eos consequatur illum qui perspiciatis.",
                "url": "https://www.wehner.com/omnis-similique-provident-sapiente-ipsa-sed-dicta"
            }
        }
    ],
    "category_groups": [
        {
            "name": "...",
            "category_ids": [
                12,
                12,
                13
            ]
        },
        {
            "name": "...",
            "category_ids": [
                12,
                19,
                19
            ]
        },
        {
            "name": "...",
            "category_ids": [
                17,
                19,
                12
            ]
        }
    ],
    "hours": [
        {
            "name": "...",
            "description": "...",
            "type": "open",
            "hours": [
                {
                    "days": "5",
                    "times": [
                        "07:36 - 15:40",
                        "07:36 - 15:40",
                        "07:36 - 15:40"
                    ]
                },
                {
                    "days": "5",
                    "times": [
                        "06:25 - 20:27",
                        "06:25 - 20:27",
                        "06:25 - 20:27"
                    ]
                },
                {
                    "days": "5",
                    "times": [
                        "09:50 - 17:29",
                        "09:50 - 17:29",
                        "09:50 - 17:29"
                    ]
                }
            ]
        },
        {
            "name": "...",
            "description": "...",
            "type": "open",
            "hours": [
                {
                    "days": "5",
                    "times": [
                        "07:18 - 13:39",
                        "07:18 - 13:39",
                        "07:18 - 13:39"
                    ]
                },
                {
                    "days": "5",
                    "times": [
                        "08:43 - 10:51",
                        "08:43 - 10:51",
                        "08:43 - 10:51"
                    ]
                },
                {
                    "days": "5",
                    "times": [
                        "06:48 - 20:49",
                        "06:48 - 20:49",
                        "06:48 - 20:49"
                    ]
                }
            ]
        },
        {
            "name": "...",
            "description": "...",
            "type": "open",
            "hours": [
                {
                    "days": "5",
                    "times": [
                        "08:15 - 14:35",
                        "08:15 - 14:35",
                        "08:15 - 14:35"
                    ]
                },
                {
                    "days": "5",
                    "times": [
                        "09:16 - 18:58",
                        "09:16 - 18:58",
                        "09:16 - 18:58"
                    ]
                },
                {
                    "days": "5",
                    "times": [
                        "08:11 - 19:49",
                        "08:11 - 19:49",
                        "08:11 - 19:49"
                    ]
                }
            ]
        }
    ],
    "contact": {
        "address": {
            "street": "Sint-Denijslaan",
            "nr": "96",
            "zipcode": "9000",
            "city": "Gent",
            "country": "BE"
        },
        "telephone": "+32 475 00 00 00",
        "vat": "BE0123.456.789",
        "social": {
            "facebook": "https://example.com",
            "twitter": "https://example.com",
            "snapchat": "https://example.com",
            "instagram": "https://example.com",
            "pinterest": "https://example.com",
            "youtube": "https://example.com"
        },
        "website": "https://example.com",
        "email": "example@domain.com"
    },
    "messages": [
        {
            "name": "...",
            "title": "...",
            "text": "...",
            "type": "HTML"
        },
        {
            "name": "...",
            "title": "...",
            "text": "...",
            "type": "HTML"
        },
        {
            "name": "...",
            "title": "...",
            "text": "...",
            "type": "HTML"
        }
    ],
    "info": [
        {
            "name": "...",
            "title": "...",
            "text": "...",
            "type": "HTML"
        },
        {
            "name": "...",
            "title": "...",
            "text": "...",
            "type": "HTML"
        },
        {
            "name": "...",
            "title": "...",
            "text": "...",
            "type": "HTML"
        }
    ],
    "currency": "EUR"
}
Version update available Please adjust your integration to the latest stable version (1.6.0)
1.5.0 stable