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/12 HTTP/1.1
Host: api.bakeronline.be
X-VERSION: 1.4.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
offers [Offer.simple] Array of Offer.simple
images [String: Image] Dictionary of Image with keys of type String
allow_comments Bool A boolean value
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: 9759

{
    "id": 13,
    "name": "Kaelyn Braun",
    "address": {
        "street": "Sint-Denijslaan",
        "nr": "96",
        "zipcode": "9000",
        "city": "Gent",
        "country": "BE",
        "position": {
            "latitude": 1.54361,
            "longitude": 0.45645
        }
    },
    "offers": [
        {
            "id": 16,
            "name": "Black Friday"
        },
        {
            "id": 12,
            "name": "Black Friday"
        },
        {
            "id": 12,
            "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_comments": true,
    "allow_orders": false,
    "delivery_use_intervals": false,
    "categories": [
        {
            "id": 13,
            "name": "Darrin Lebsack",
            "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": "Facilis quibusdam architecto dolore quia error perferendis."
                },
                "description": {
                    "en": "Sit a rerum velit laudantium quos. Rerum in asperiores rerum natus laborum nostrum. Modi amet doloribus ipsam omnis vel sapiente."
                },
                "url": {
                    "en": "https://www.mraz.net/corrupti-suscipit-ab-id-alias-velit"
                }
            }
        },
        {
            "id": 10,
            "name": "Marlon Torphy",
            "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": "Nisi nihil ut voluptatibus ipsa et et eius a ab harum."
                },
                "description": {
                    "en": "Omnis corporis harum voluptate omnis eveniet. Molestiae aut possimus minima error magnam fugiat accusamus. Dicta nam officiis dolorem qui voluptatem."
                },
                "url": {
                    "en": "http://www.lubowitz.com/et-fugiat-qui-enim-repellendus-consequatur-quibusdam-nihil-doloribus.html"
                }
            }
        },
        {
            "id": 19,
            "name": "Shanel Roob",
            "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": "Maiores nam aut quo quas eum sit ut."
                },
                "description": {
                    "en": "Nulla impedit consequatur ex occaecati quis vero atque et. Sunt dolores perferendis tempora dolorem facilis modi. Assumenda qui ab iusto reprehenderit quia libero enim nihil."
                },
                "url": {
                    "en": "http://www.corwin.net/dolor-sapiente-hic-dolor-quae-repudiandae.html"
                }
            }
        }
    ],
    "category_groups": [
        {
            "name": "...",
            "category_ids": [
                14,
                18,
                11
            ]
        },
        {
            "name": "...",
            "category_ids": [
                17,
                19,
                12
            ]
        },
        {
            "name": "...",
            "category_ids": [
                19,
                16,
                13
            ]
        }
    ],
    "hours": [
        {
            "name": "...",
            "description": "...",
            "type": "open",
            "hours": [
                {
                    "days": "5",
                    "times": [
                        "07:25 - 21:52",
                        "07:25 - 21:52",
                        "07:25 - 21:52"
                    ]
                },
                {
                    "days": "5",
                    "times": [
                        "09:56 - 12:55",
                        "09:56 - 12:55",
                        "09:56 - 12:55"
                    ]
                },
                {
                    "days": "5",
                    "times": [
                        "07:55 - 21:45",
                        "07:55 - 21:45",
                        "07:55 - 21:45"
                    ]
                }
            ]
        },
        {
            "name": "...",
            "description": "...",
            "type": "open",
            "hours": [
                {
                    "days": "5",
                    "times": [
                        "08:33 - 20:11",
                        "08:33 - 20:11",
                        "08:33 - 20:11"
                    ]
                },
                {
                    "days": "5",
                    "times": [
                        "07:38 - 13:56",
                        "07:38 - 13:56",
                        "07:38 - 13:56"
                    ]
                },
                {
                    "days": "5",
                    "times": [
                        "08:48 - 15:45",
                        "08:48 - 15:45",
                        "08:48 - 15:45"
                    ]
                }
            ]
        },
        {
            "name": "...",
            "description": "...",
            "type": "open",
            "hours": [
                {
                    "days": "5",
                    "times": [
                        "08:44 - 16:15",
                        "08:44 - 16:15",
                        "08:44 - 16:15"
                    ]
                },
                {
                    "days": "5",
                    "times": [
                        "07:21 - 15:14",
                        "07:21 - 15:14",
                        "07:21 - 15:14"
                    ]
                },
                {
                    "days": "5",
                    "times": [
                        "07:48 - 14:35",
                        "07:48 - 14:35",
                        "07:48 - 14:35"
                    ]
                }
            ]
        }
    ],
    "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.9.0)
1.4.0 stable