Get all shops of a company

GET /company/@id/shops

Request

URL parameters

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

A dictionary with fields

Field Type Description
id Int ID of the company to return shops from

Example request 1 Return shops of all platforms

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

Response

Maximum 20. Array of Shop.extended: [Shop.extended]

Shop.extended

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 Return shops of all platforms

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

[
    {
        "id": 3155,
        "name": "The Dough Flow",
        "address": {
            "street": "Maesbaan",
            "nr": "27",
            "zipcode": "5330",
            "city": "Gembloers",
            "country": "BE",
            "position": {
                "latitude": 51.05,
                "longitude": 3.71667
            }
        },
        "allow_comments": false,
        "currency": "EUR",
        "images": {
            "avatar": {
                "resolutions": [
                    {
                        "src": "https://bakeronline.be/uploads/shop-avatars/3155/180x180/patisserie-gerdy.jpg",
                        "width": 180,
                        "height": 180
                    },
                    {
                        "src": "https://bakeronline.be/uploads/shop-avatars/3155/360x360/patisserie-gerdy.jpg",
                        "width": 300,
                        "height": 300
                    }
                ]
            }
        },
        "allow_orders": true,
        "delivery_use_intervals": false,
        "categories": [],
        "offers": [],
        "category_groups": [],
        "hours": [
            {
                "name": "6572",
                "description": null,
                "type": "open",
                "hours": [
                    {
                        "days": "2125",
                        "times": [
                            "07:15 - 09:30",
                            "10:30 - 11:30",
                            "12:30 - 14:15",
                            "14:30 - 14:45"
                        ]
                    },
                    {
                        "days": "2126",
                        "times": [
                            "10:45 - 11:15",
                            "11:30 - 12:30",
                            "13:30 - 15:15",
                            "15:15 - 15:45"
                        ]
                    },
                    {
                        "days": "2127",
                        "times": [
                            "14:15 - 14:30",
                            "14:30 - 14:45",
                            "15:15 - 16:30",
                            "17:00 - 18:15",
                            "14:15 - 14:30",
                            "14:30 - 14:45",
                            "15:15 - 16:30",
                            "17:00 - 18:15"
                        ]
                    },
                    {
                        "days": "2128",
                        "times": [
                            "14:15 - 14:30",
                            "14:30 - 14:45",
                            "15:15 - 16:30",
                            "17:00 - 18:15"
                        ]
                    },
                    {
                        "days": "2129",
                        "times": [
                            "06:00 - 06:15",
                            "06:15 - 07:00",
                            "07:30 - 08:15",
                            "09:15 - 10:00",
                            "10:15 - 11:30",
                            "11:30 - 12:00",
                            "06:00 - 06:15",
                            "06:15 - 07:00",
                            "07:30 - 08:15",
                            "09:15 - 10:00",
                            "10:15 - 11:30",
                            "11:30 - 12:00",
                            "06:00 - 06:15",
                            "06:15 - 07:00",
                            "07:30 - 08:15",
                            "09:15 - 10:00",
                            "10:15 - 11:30",
                            "11:30 - 12:00"
                        ]
                    },
                    {
                        "days": "2123 - 2124",
                        "times": [
                            "06:00 - 06:15",
                            "06:15 - 07:00",
                            "07:30 - 08:15",
                            "09:15 - 10:00",
                            "10:15 - 11:30",
                            "11:30 - 12:00"
                        ]
                    }
                ]
            },
            {
                "name": "6573",
                "description": null,
                "type": "takeout",
                "hours": [
                    {
                        "days": "2125",
                        "times": [
                            "11:30 - 19:15",
                            "3841"
                        ]
                    },
                    {
                        "days": "2126",
                        "times": [
                            "15:30 - 16:00",
                            "16:00 - 17:00",
                            "17:00 - 17:30",
                            "18:00 - 18:15",
                            "18:45 - 19:00",
                            "19:30 - 20:00",
                            "15:30 - 16:00",
                            "16:00 - 17:00",
                            "17:00 - 17:30",
                            "18:00 - 18:15",
                            "18:45 - 19:00",
                            "19:30 - 20:00",
                            "15:30 - 16:00",
                            "16:00 - 17:00",
                            "17:00 - 17:30",
                            "18:00 - 18:15",
                            "18:45 - 19:00",
                            "19:30 - 20:00",
                            "3841"
                        ]
                    },
                    {
                        "days": "2120 - 2121",
                        "times": [
                            "15:30 - 16:00",
                            "16:00 - 17:00",
                            "17:00 - 17:30",
                            "18:00 - 18:15",
                            "18:45 - 19:00",
                            "19:30 - 20:00",
                            "3841"
                        ]
                    },
                    {
                        "days": "2129",
                        "times": [
                            "07:30 - 14:45",
                            "07:30 - 14:45",
                            "3841"
                        ]
                    },
                    {
                        "days": "2130",
                        "times": [
                            "07:30 - 14:45",
                            "3841"
                        ]
                    },
                    {
                        "days": "2131",
                        "times": [
                            "11:00 - 13:15",
                            "16:45 - 17:15",
                            "3841"
                        ]
                    }
                ]
            },
            {
                "name": "6574",
                "description": null,
                "type": "delivery",
                "hours": [
                    {
                        "days": "2125",
                        "times": [
                            "08:30 - 09:45",
                            "11:30 - 12:30",
                            "08:30 - 09:45",
                            "11:30 - 12:30",
                            "08:30 - 09:45",
                            "11:30 - 12:30",
                            "3841"
                        ]
                    },
                    {
                        "days": "2119 - 2120",
                        "times": [
                            "08:30 - 09:45",
                            "11:30 - 12:30",
                            "3841"
                        ]
                    },
                    {
                        "days": "2128",
                        "times": [
                            "08:45 - 09:00",
                            "10:15 - 12:00",
                            "12:45 - 13:00",
                            "13:00 - 14:15",
                            "3841"
                        ]
                    },
                    {
                        "days": "2129",
                        "times": [
                            "10:00 - 11:45",
                            "13:15 - 14:30",
                            "15:00 - 15:30",
                            "15:30 - 16:30",
                            "3841"
                        ]
                    },
                    {
                        "days": "2130",
                        "times": [
                            "15:15 - 16:00",
                            "16:00 - 17:00",
                            "17:15 - 17:45",
                            "18:00 - 18:45",
                            "18:45 - 19:00",
                            "15:15 - 16:00",
                            "16:00 - 17:00",
                            "17:15 - 17:45",
                            "18:00 - 18:45",
                            "18:45 - 19:00",
                            "3841"
                        ]
                    },
                    {
                        "days": "2131",
                        "times": [
                            "15:15 - 16:00",
                            "16:00 - 17:00",
                            "17:15 - 17:45",
                            "18:00 - 18:45",
                            "18:45 - 19:00",
                            "3841"
                        ]
                    }
                ]
            }
        ],
        "contact": {
            "address": {
                "street": "Maesbaan",
                "nr": "27",
                "zipcode": "5330",
                "city": "Gembloers",
                "country": "BE"
            },
            "telephone": "+32 479 44 77 88",
            "vat": "BE 0733492832",
            "social": {},
            "website": null,
            "email": "jules84@example.org"
        },
        "messages": [],
        "info": []
    },
    {
        "id": 3156,
        "name": "Crumbs",
        "address": {
            "street": "Leroystraat",
            "nr": "91",
            "zipcode": "9520",
            "city": "La Roche-en-Ardenne",
            "country": "BE",
            "position": {
                "latitude": 51.05,
                "longitude": 3.71667
            }
        },
        "allow_comments": false,
        "currency": "EUR",
        "images": {
            "avatar": {
                "resolutions": [
                    {
                        "src": "https://bakeronline.be/uploads/shop-avatars/3156/180x180/bakkerij-cocerulle.jpg",
                        "width": 180,
                        "height": 273
                    },
                    {
                        "src": "https://bakeronline.be/uploads/shop-avatars/3156/360x360/bakkerij-cocerulle.jpg",
                        "width": 198,
                        "height": 300
                    }
                ]
            }
        },
        "allow_orders": true,
        "delivery_use_intervals": false,
        "categories": [],
        "offers": [],
        "category_groups": [],
        "hours": [
            {
                "name": "6572",
                "description": null,
                "type": "open",
                "hours": [
                    {
                        "days": "2125",
                        "times": [
                            "11:30 - 16:45"
                        ]
                    },
                    {
                        "days": "2126",
                        "times": [
                            "14:30 - 15:00",
                            "15:00 - 15:15",
                            "16:15 - 17:00",
                            "14:30 - 15:00",
                            "15:00 - 15:15",
                            "16:15 - 17:00"
                        ]
                    },
                    {
                        "days": "2127",
                        "times": [
                            "14:30 - 15:00",
                            "15:00 - 15:15",
                            "16:15 - 17:00"
                        ]
                    },
                    {
                        "days": "2128",
                        "times": [
                            "14:00 - 15:00",
                            "15:45 - 16:30",
                            "18:15 - 18:45"
                        ]
                    },
                    {
                        "days": "2129",
                        "times": [
                            "09:30 - 11:30",
                            "12:00 - 12:45",
                            "13:30 - 14:30",
                            "15:15 - 15:45",
                            "15:45 - 16:15",
                            "09:30 - 11:30",
                            "12:00 - 12:45",
                            "13:30 - 14:30",
                            "15:15 - 15:45",
                            "15:45 - 16:15"
                        ]
                    },
                    {
                        "days": "2130",
                        "times": [
                            "09:30 - 11:30",
                            "12:00 - 12:45",
                            "13:30 - 14:30",
                            "15:15 - 15:45",
                            "15:45 - 16:15"
                        ]
                    },
                    {
                        "days": "2131",
                        "times": [
                            "12:30 - 14:15",
                            "15:00 - 16:30",
                            "17:00 - 17:15",
                            "17:45 - 18:15"
                        ]
                    }
                ]
            },
            {
                "name": "6573",
                "description": null,
                "type": "takeout",
                "hours": [
                    {
                        "days": "2125",
                        "times": [
                            "07:15 - 08:00",
                            "11:15 - 11:30",
                            "07:15 - 08:00",
                            "11:15 - 11:30",
                            "3841"
                        ]
                    },
                    {
                        "days": "2126",
                        "times": [
                            "07:15 - 08:00",
                            "11:15 - 11:30",
                            "3841"
                        ]
                    },
                    {
                        "days": "2127",
                        "times": [
                            "08:00 - 08:15",
                            "08:30 - 08:45",
                            "08:45 - 09:15",
                            "10:00 - 11:30",
                            "11:45 - 12:30",
                            "13:30 - 14:15",
                            "3841"
                        ]
                    },
                    {
                        "days": "2128",
                        "times": [
                            "06:15 - 07:00",
                            "07:45 - 08:15",
                            "09:15 - 09:30",
                            "09:30 - 09:45",
                            "10:30 - 10:45",
                            "3841"
                        ]
                    },
                    {
                        "days": "2129",
                        "times": [
                            "10:00 - 12:15",
                            "16:15 - 16:45",
                            "10:00 - 12:15",
                            "16:15 - 16:45",
                            "3841"
                        ]
                    },
                    {
                        "days": "2130",
                        "times": [
                            "10:00 - 12:15",
                            "16:15 - 16:45",
                            "3841"
                        ]
                    },
                    {
                        "days": "2131",
                        "times": [
                            "07:00 - 08:00",
                            "09:00 - 11:15",
                            "12:00 - 13:00",
                            "14:30 - 14:45",
                            "3841"
                        ]
                    }
                ]
            },
            {
                "name": "6574",
                "description": null,
                "type": "delivery",
                "hours": [
                    {
                        "days": "2125",
                        "times": [
                            "06:15 - 06:45",
                            "07:45 - 08:15",
                            "08:15 - 08:30",
                            "09:00 - 09:15",
                            "11:00 - 11:15",
                            "3841"
                        ]
                    },
                    {
                        "days": "2126",
                        "times": [
                            "14:00 - 16:15",
                            "3841"
                        ]
                    },
                    {
                        "days": "2127",
                        "times": [
                            "15:00 - 15:15",
                            "15:45 - 16:00",
                            "16:00 - 16:30",
                            "16:45 - 17:00",
                            "17:00 - 17:30",
                            "17:45 - 18:00",
                            "3841"
                        ]
                    },
                    {
                        "days": "2128",
                        "times": [
                            "12:30 - 14:00",
                            "14:15 - 14:30",
                            "15:15 - 15:45",
                            "16:30 - 17:00",
                            "17:15 - 17:30",
                            "3841"
                        ]
                    },
                    {
                        "days": "2129",
                        "times": [
                            "10:15 - 11:15",
                            "3841"
                        ]
                    },
                    {
                        "days": "2130",
                        "times": [
                            "11:45 - 12:15",
                            "12:30 - 14:45",
                            "3841"
                        ]
                    },
                    {
                        "days": "2131",
                        "times": [
                            "08:45 - 11:00",
                            "11:15 - 11:45",
                            "12:00 - 12:15",
                            "13:00 - 14:30",
                            "14:45 - 15:30",
                            "3841"
                        ]
                    }
                ]
            }
        ],
        "contact": {
            "address": {
                "street": "Leroystraat",
                "nr": "91",
                "zipcode": "9520",
                "city": "La Roche-en-Ardenne",
                "country": "BE"
            },
            "telephone": "+32 479 44 77 88",
            "vat": "BE 0165137291",
            "social": {},
            "website": null,
            "email": "nhermans@example.net"
        },
        "messages": [],
        "info": []
    }
]
Version update available Please adjust your integration to the latest stable version (1.5.2)
1.5.0 stable