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 Invalid shop id

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

Example request 2 Valid shop id

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

Example request 3 Shop with offer

GET /shops/214 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 Invalid shop id

HTTP/1.1 404 Not Found
Content-Type: application/json; charset=utf-8
Content-Length: 65

{
    "code": "shop_not_found",
    "message": "Shop not found"
}

Example response 2 Valid shop id

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

{
    "id": 212,
    "name": "Flours for Hours",
    "address": {
        "street": "Coppensdreef",
        "nr": "60",
        "zipcode": "4432",
        "city": "Blankenberge",
        "country": "BE",
        "position": {
            "latitude": 50.8503396,
            "longitude": 4.3517103
        }
    },
    "allow_comments": true,
    "currency": "EUR",
    "images": {
        "banner": {
            "resolutions": [
                {
                    "src": "https://bakeronline.be/uploads/banner/212/1300x315/bakkerij-panda-huise-bvba-cindy-verschelde.jpg",
                    "width": 300,
                    "height": 200
                }
            ]
        }
    },
    "allow_orders": true,
    "delivery_use_intervals": false,
    "categories": [
        {
            "id": 307,
            "name": "SlateGray",
            "banner": null,
            "seo": {
                "title": [],
                "description": [],
                "url": []
            }
        },
        {
            "id": 308,
            "name": "AliceBlue",
            "banner": null,
            "seo": {
                "title": [],
                "description": [],
                "url": []
            }
        },
        {
            "id": 309,
            "name": "PaleVioletRed",
            "banner": null,
            "seo": {
                "title": [],
                "description": [],
                "url": []
            }
        },
        {
            "id": 310,
            "name": "SkyBlue",
            "banner": null,
            "seo": {
                "title": [],
                "description": [],
                "url": []
            }
        },
        {
            "id": 311,
            "name": "DarkOrchid",
            "banner": null,
            "seo": {
                "title": [],
                "description": [],
                "url": []
            }
        }
    ],
    "offers": [],
    "category_groups": [],
    "hours": [
        {
            "name": "6572",
            "description": null,
            "type": "open",
            "hours": [
                {
                    "days": "2125",
                    "times": [
                        "15:30 - 16:45",
                        "17:15 - 17:30",
                        "18:30 - 19:00",
                        "19:30 - 19:45",
                        "15:30 - 16:45",
                        "17:15 - 17:30",
                        "18:30 - 19:00",
                        "19:30 - 19:45"
                    ]
                },
                {
                    "days": "2119 - 2121",
                    "times": [
                        "2035"
                    ]
                },
                {
                    "days": "2129",
                    "times": [
                        "15:30 - 16:45",
                        "17:15 - 17:30",
                        "18:30 - 19:00",
                        "19:30 - 19:45"
                    ]
                },
                {
                    "days": "2130",
                    "times": [
                        "16:15 - 16:45",
                        "16:45 - 17:15",
                        "17:45 - 18:15",
                        "18:45 - 19:15"
                    ]
                },
                {
                    "days": "2131",
                    "times": [
                        "2035"
                    ]
                }
            ]
        },
        {
            "name": "6573",
            "description": null,
            "type": "takeout",
            "hours": [
                {
                    "days": "2125",
                    "times": [
                        "15:15 - 15:45",
                        "16:00 - 16:30",
                        "17:00 - 17:30",
                        "15:15 - 15:45",
                        "16:00 - 16:30",
                        "17:00 - 17:30",
                        "15:15 - 15:45",
                        "16:00 - 16:30",
                        "17:00 - 17:30",
                        "3841"
                    ]
                },
                {
                    "days": "2119 - 2121",
                    "times": [
                        "3507"
                    ]
                },
                {
                    "days": "2122 - 2123",
                    "times": [
                        "15:15 - 15:45",
                        "16:00 - 16:30",
                        "17:00 - 17:30",
                        "3841"
                    ]
                },
                {
                    "days": "2131",
                    "times": [
                        "3507"
                    ]
                }
            ]
        },
        {
            "name": "6574",
            "description": null,
            "type": "delivery",
            "hours": [
                {
                    "days": "2125",
                    "times": [
                        "10:00 - 10:15",
                        "13:00 - 14:15",
                        "10:00 - 10:15",
                        "13:00 - 14:15",
                        "10:00 - 10:15",
                        "13:00 - 14:15",
                        "3841"
                    ]
                },
                {
                    "days": "2126",
                    "times": [
                        "10:00 - 10:15",
                        "13:00 - 14:15",
                        "3841"
                    ]
                },
                {
                    "days": "2127",
                    "times": [
                        "3507"
                    ]
                },
                {
                    "days": "2128",
                    "times": [
                        "10:00 - 10:15",
                        "13:00 - 14:15",
                        "3841"
                    ]
                },
                {
                    "days": "2129",
                    "times": [
                        "3507"
                    ]
                },
                {
                    "days": "2130",
                    "times": [
                        "15:45 - 16:00",
                        "16:00 - 16:30",
                        "17:00 - 17:15",
                        "18:00 - 18:45",
                        "18:45 - 19:15",
                        "15:45 - 16:00",
                        "16:00 - 16:30",
                        "17:00 - 17:15",
                        "18:00 - 18:45",
                        "18:45 - 19:15",
                        "3841"
                    ]
                },
                {
                    "days": "2131",
                    "times": [
                        "15:45 - 16:00",
                        "16:00 - 16:30",
                        "17:00 - 17:15",
                        "18:00 - 18:45",
                        "18:45 - 19:15",
                        "3841"
                    ]
                }
            ]
        }
    ],
    "contact": {
        "address": {
            "street": "Coppensdreef",
            "nr": "60",
            "zipcode": "4432",
            "city": "Blankenberge",
            "country": "BE"
        },
        "telephone": "+32 479 44 77 88",
        "vat": "BE 0720688634",
        "social": {},
        "website": null,
        "email": "vandenbossche.louis@example.net"
    },
    "messages": [],
    "info": []
}

Example response 3 Shop with offer

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

{
    "id": 214,
    "name": "Slow Dough",
    "address": {
        "street": "Tranweg",
        "nr": "31",
        "zipcode": "1367",
        "city": "Komen-Waasten",
        "country": "BE",
        "position": {
            "latitude": 51.05,
            "longitude": 3.71667
        }
    },
    "allow_comments": true,
    "currency": "EUR",
    "images": {
        "banner": {
            "resolutions": [
                {
                    "src": "https://bakeronline.be/uploads/banner/214/1300x315/patisserie-courcelles.gif",
                    "width": 241,
                    "height": 241
                }
            ]
        }
    },
    "allow_orders": true,
    "delivery_use_intervals": false,
    "categories": [
        {
            "id": 314,
            "name": "Green",
            "banner": null,
            "seo": {
                "title": [],
                "description": [],
                "url": []
            }
        },
        {
            "id": 315,
            "name": "LightSalmon",
            "banner": null,
            "seo": {
                "title": [],
                "description": [],
                "url": []
            }
        },
        {
            "id": 316,
            "name": "SlateBlue",
            "banner": null,
            "seo": {
                "title": [],
                "description": [],
                "url": []
            }
        }
    ],
    "offers": [
        {
            "id": 18,
            "name": "Black Friday"
        }
    ],
    "category_groups": [],
    "hours": [
        {
            "name": "6572",
            "description": null,
            "type": "open",
            "hours": [
                {
                    "days": "2125",
                    "times": [
                        "06:00 - 07:45",
                        "08:45 - 10:00",
                        "10:30 - 11:15",
                        "06:00 - 07:45",
                        "08:45 - 10:00",
                        "10:30 - 11:15",
                        "06:00 - 07:45",
                        "08:45 - 10:00",
                        "10:30 - 11:15"
                    ]
                },
                {
                    "days": "2119 - 2120",
                    "times": [
                        "06:00 - 07:45",
                        "08:45 - 10:00",
                        "10:30 - 11:15"
                    ]
                },
                {
                    "days": "2128",
                    "times": [
                        "07:15 - 08:15",
                        "08:30 - 11:00",
                        "13:00 - 13:45",
                        "07:15 - 08:15",
                        "08:30 - 11:00",
                        "13:00 - 13:45"
                    ]
                },
                {
                    "days": "2129",
                    "times": [
                        "07:15 - 08:15",
                        "08:30 - 11:00",
                        "13:00 - 13:45"
                    ]
                },
                {
                    "days": "2130",
                    "times": [
                        "08:30 - 09:30",
                        "11:15 - 11:30"
                    ]
                },
                {
                    "days": "2131",
                    "times": [
                        "15:45 - 16:45",
                        "17:15 - 17:30",
                        "18:30 - 19:00"
                    ]
                }
            ]
        },
        {
            "name": "6573",
            "description": null,
            "type": "takeout",
            "hours": [
                {
                    "days": "2125",
                    "times": [
                        "07:15 - 08:15",
                        "08:30 - 09:30",
                        "09:30 - 10:00",
                        "10:15 - 11:00",
                        "12:00 - 12:30",
                        "13:15 - 14:30",
                        "07:15 - 08:15",
                        "08:30 - 09:30",
                        "09:30 - 10:00",
                        "10:15 - 11:00",
                        "12:00 - 12:30",
                        "13:15 - 14:30",
                        "07:15 - 08:15",
                        "08:30 - 09:30",
                        "09:30 - 10:00",
                        "10:15 - 11:00",
                        "12:00 - 12:30",
                        "13:15 - 14:30",
                        "3841"
                    ]
                },
                {
                    "days": "2119 - 2120",
                    "times": [
                        "07:15 - 08:15",
                        "08:30 - 09:30",
                        "09:30 - 10:00",
                        "10:15 - 11:00",
                        "12:00 - 12:30",
                        "13:15 - 14:30",
                        "3841"
                    ]
                },
                {
                    "days": "2128",
                    "times": [
                        "07:30 - 08:00",
                        "08:30 - 10:30",
                        "11:30 - 11:45",
                        "13:00 - 15:15",
                        "3841"
                    ]
                },
                {
                    "days": "2129",
                    "times": [
                        "06:00 - 14:15",
                        "3841"
                    ]
                },
                {
                    "days": "2130",
                    "times": [
                        "06:45 - 07:30",
                        "07:30 - 10:30",
                        "10:45 - 11:45",
                        "12:45 - 13:30",
                        "06:45 - 07:30",
                        "07:30 - 10:30",
                        "10:45 - 11:45",
                        "12:45 - 13:30",
                        "3841"
                    ]
                },
                {
                    "days": "2131",
                    "times": [
                        "06:45 - 07:30",
                        "07:30 - 10:30",
                        "10:45 - 11:45",
                        "12:45 - 13:30",
                        "3841"
                    ]
                }
            ]
        },
        {
            "name": "6574",
            "description": null,
            "type": "delivery",
            "hours": [
                {
                    "days": "2125",
                    "times": [
                        "07:15 - 09:00",
                        "10:15 - 11:15",
                        "11:45 - 13:00",
                        "13:00 - 14:00",
                        "14:45 - 15:15",
                        "07:15 - 09:00",
                        "10:15 - 11:15",
                        "11:45 - 13:00",
                        "13:00 - 14:00",
                        "14:45 - 15:15",
                        "07:15 - 09:00",
                        "10:15 - 11:15",
                        "11:45 - 13:00",
                        "13:00 - 14:00",
                        "14:45 - 15:15",
                        "3841"
                    ]
                },
                {
                    "days": "2119 - 2120",
                    "times": [
                        "07:15 - 09:00",
                        "10:15 - 11:15",
                        "11:45 - 13:00",
                        "13:00 - 14:00",
                        "14:45 - 15:15",
                        "3841"
                    ]
                },
                {
                    "days": "2128",
                    "times": [
                        "08:30 - 12:15",
                        "13:00 - 13:45",
                        "14:45 - 15:00",
                        "08:30 - 12:15",
                        "13:00 - 13:45",
                        "14:45 - 15:00",
                        "08:30 - 12:15",
                        "13:00 - 13:45",
                        "14:45 - 15:00",
                        "08:30 - 12:15",
                        "13:00 - 13:45",
                        "14:45 - 15:00",
                        "3841"
                    ]
                },
                {
                    "days": "2122 - 2124",
                    "times": [
                        "08:30 - 12:15",
                        "13:00 - 13:45",
                        "14:45 - 15:00",
                        "3841"
                    ]
                }
            ]
        }
    ],
    "contact": {
        "address": {
            "street": "Tranweg",
            "nr": "31",
            "zipcode": "1367",
            "city": "Komen-Waasten",
            "country": "BE"
        },
        "telephone": "+32 479 44 77 88",
        "vat": "BE 0559654249",
        "social": {},
        "website": null,
        "email": "degroote.samuel@example.com"
    },
    "messages": [],
    "info": []
}
1.5.0 stable