Get recent shops

GET /shops/recent

Request

Authentication

This endpoint requires authentication.

Header Value
Authorization Set the value to Bearer + + access_token

Query string (URL)

Append the querystring with following properties to the URL.

A dictionary with fields

Field Type Description
company_id Int Optional. Only return shops of this company ID

Example request 1 Not authenticated

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

Example request 2 User without orders

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

Example request 3 User with orders

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

Example request 4 User with orders filtered on company id

GET /shops/recent?company_id=2971 HTTP/1.1
Host: api.bakeronline.be
Authorization: Bearer 23fb37238541e112a2ea9c2d01b1cddd926fe80445a97ec94ee0ad169da6b3a855dfb9d6a32f8c3d5b6d85f2adb23945107dcd6980f45180fa0fc42a649eafd970927635c743380048c6eea678713d6197f5623460b3d694d46b9d7395b8053e7a897979
X-VERSION: 1.5.0
Accept-Language: en-US,en;q=0.5

Response

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 Not authenticated

HTTP/1.1 401 Unauthorized
Content-Type: application/json; charset=utf-8
Content-Length: 98

{
    "code": "not_authorized",
    "message": "Please provide a token to access this endpoint."
}

Example response 2 User without orders

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

[]

Example response 3 User with orders

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

[
    {
        "id": 3084,
        "name": "The Torpedough",
        "address": {
            "street": "Collignonboulevard",
            "nr": "92",
            "zipcode": "4880",
            "city": "Binche",
            "country": "BE",
            "position": {
                "latitude": 51.05,
                "longitude": 3.71667
            }
        },
        "allow_comments": false,
        "currency": "EUR",
        "images": {
            "avatar": {
                "resolutions": [
                    {
                        "src": "https://bakeronline.be/uploads/shop-avatars/3084/180x180/patisserie-lieven.jpg",
                        "width": 215,
                        "height": 180
                    },
                    {
                        "src": "https://bakeronline.be/uploads/shop-avatars/3084/360x360/patisserie-lieven.jpg",
                        "width": 300,
                        "height": 251
                    }
                ]
            }
        },
        "allow_orders": true,
        "delivery_use_intervals": false,
        "categories": [
            {
                "id": 4132,
                "name": "DeepSkyBlue",
                "banner": null,
                "seo": {
                    "title": [],
                    "description": [],
                    "url": []
                }
            }
        ],
        "offers": [],
        "category_groups": [],
        "hours": [
            {
                "name": "6572",
                "description": null,
                "type": "open",
                "hours": [
                    {
                        "days": "2125",
                        "times": [
                            "05:15 - 06:45",
                            "07:30 - 08:15",
                            "09:30 - 10:45",
                            "11:15 - 12:45",
                            "12:45 - 13:30",
                            "13:30 - 13:45",
                            "05:15 - 06:45",
                            "07:30 - 08:15",
                            "09:30 - 10:45",
                            "11:15 - 12:45",
                            "12:45 - 13:30",
                            "13:30 - 13:45"
                        ]
                    },
                    {
                        "days": "2126",
                        "times": [
                            "05:15 - 06:45",
                            "07:30 - 08:15",
                            "09:30 - 10:45",
                            "11:15 - 12:45",
                            "12:45 - 13:30",
                            "13:30 - 13:45"
                        ]
                    },
                    {
                        "days": "2127",
                        "times": [
                            "14:15 - 14:45",
                            "14:45 - 17:30"
                        ]
                    },
                    {
                        "days": "2128",
                        "times": [
                            "10:45 - 11:30",
                            "12:45 - 13:30",
                            "16:00 - 16:15",
                            "10:45 - 11:30",
                            "12:45 - 13:30",
                            "16:00 - 16:15",
                            "10:45 - 11:30",
                            "12:45 - 13:30",
                            "16:00 - 16:15"
                        ]
                    },
                    {
                        "days": "2122 - 2123",
                        "times": [
                            "10:45 - 11:30",
                            "12:45 - 13:30",
                            "16:00 - 16:15"
                        ]
                    },
                    {
                        "days": "2131",
                        "times": [
                            "14:30 - 16:15",
                            "16:30 - 18:00",
                            "18:15 - 18:45"
                        ]
                    }
                ]
            },
            {
                "name": "6573",
                "description": null,
                "type": "takeout",
                "hours": [
                    {
                        "days": "2125",
                        "times": [
                            "08:15 - 10:30",
                            "12:45 - 13:15",
                            "14:30 - 15:00",
                            "08:15 - 10:30",
                            "12:45 - 13:15",
                            "14:30 - 15:00",
                            "08:15 - 10:30",
                            "12:45 - 13:15",
                            "14:30 - 15:00",
                            "3841"
                        ]
                    },
                    {
                        "days": "2119 - 2120",
                        "times": [
                            "08:15 - 10:30",
                            "12:45 - 13:15",
                            "14:30 - 15:00",
                            "3841"
                        ]
                    },
                    {
                        "days": "2128",
                        "times": [
                            "09:45 - 10:15",
                            "10:45 - 11:30",
                            "14:00 - 15:15",
                            "3841"
                        ]
                    },
                    {
                        "days": "2129",
                        "times": [
                            "10:15 - 11:15",
                            "12:00 - 12:45",
                            "13:30 - 13:45",
                            "13:45 - 15:15",
                            "3841"
                        ]
                    },
                    {
                        "days": "2130",
                        "times": [
                            "05:30 - 09:15",
                            "09:45 - 10:00",
                            "05:30 - 09:15",
                            "09:45 - 10:00",
                            "3841"
                        ]
                    },
                    {
                        "days": "2131",
                        "times": [
                            "05:30 - 09:15",
                            "09:45 - 10:00",
                            "3841"
                        ]
                    }
                ]
            },
            {
                "name": "6574",
                "description": null,
                "type": "delivery",
                "hours": [
                    {
                        "days": "2125",
                        "times": [
                            "12:15 - 13:15",
                            "12:15 - 13:15",
                            "12:15 - 13:15",
                            "3841"
                        ]
                    },
                    {
                        "days": "2119 - 2120",
                        "times": [
                            "12:15 - 13:15",
                            "3841"
                        ]
                    },
                    {
                        "days": "2128",
                        "times": [
                            "09:15 - 14:15",
                            "3841"
                        ]
                    },
                    {
                        "days": "2129",
                        "times": [
                            "13:45 - 14:00",
                            "15:00 - 16:00",
                            "16:30 - 16:45",
                            "13:45 - 14:00",
                            "15:00 - 16:00",
                            "16:30 - 16:45",
                            "3841"
                        ]
                    },
                    {
                        "days": "2130",
                        "times": [
                            "13:45 - 14:00",
                            "15:00 - 16:00",
                            "16:30 - 16:45",
                            "3841"
                        ]
                    },
                    {
                        "days": "2131",
                        "times": [
                            "12:00 - 12:15",
                            "13:15 - 13:45",
                            "13:45 - 14:00",
                            "14:00 - 14:45",
                            "15:30 - 16:00",
                            "16:30 - 17:00",
                            "3841"
                        ]
                    }
                ]
            },
            {
                "name": "Mohammed Grégoire",
                "description": "Moreauring 20, 5537 Beaumont (1903)",
                "type": "latch",
                "hours": [
                    {
                        "days": "2118 - 2124",
                        "times": [
                            "3507"
                        ]
                    }
                ]
            }
        ],
        "contact": {
            "address": {
                "street": "Collignonboulevard",
                "nr": "92",
                "zipcode": "4880",
                "city": "Binche",
                "country": "BE"
            },
            "telephone": "+32 479 44 77 88",
            "vat": "BE 0730571380",
            "social": {},
            "website": null,
            "email": "febe.adam@example.org"
        },
        "messages": [],
        "info": []
    },
    {
        "id": 3080,
        "name": "Knead for Sweets",
        "address": {
            "street": "Demirdreef",
            "nr": "43",
            "zipcode": "7800",
            "city": "Herve",
            "country": "BE",
            "position": {
                "latitude": 50.8503396,
                "longitude": 4.3517103
            }
        },
        "allow_comments": false,
        "currency": "EUR",
        "images": {
            "avatar": {
                "resolutions": [
                    {
                        "src": "https://bakeronline.be/uploads/shop-avatars/3080/180x180/patisserie-willems.jpg",
                        "width": 180,
                        "height": 180
                    },
                    {
                        "src": "https://bakeronline.be/uploads/shop-avatars/3080/360x360/patisserie-willems.jpg",
                        "width": 360,
                        "height": 360
                    }
                ]
            }
        },
        "allow_orders": true,
        "delivery_use_intervals": false,
        "categories": [
            {
                "id": 4125,
                "name": "Aqua",
                "banner": null,
                "seo": {
                    "title": [],
                    "description": [],
                    "url": []
                }
            }
        ],
        "offers": [],
        "category_groups": [],
        "hours": [
            {
                "name": "6572",
                "description": null,
                "type": "open",
                "hours": [
                    {
                        "days": "2125",
                        "times": [
                            "08:30 - 09:30",
                            "10:30 - 11:00",
                            "11:15 - 11:30",
                            "11:30 - 12:45",
                            "08:30 - 09:30",
                            "10:30 - 11:00",
                            "11:15 - 11:30",
                            "11:30 - 12:45",
                            "08:30 - 09:30",
                            "10:30 - 11:00",
                            "11:15 - 11:30",
                            "11:30 - 12:45",
                            "08:30 - 09:30",
                            "10:30 - 11:00",
                            "11:15 - 11:30",
                            "11:30 - 12:45",
                            "08:30 - 09:30",
                            "10:30 - 11:00",
                            "11:15 - 11:30",
                            "11:30 - 12:45"
                        ]
                    },
                    {
                        "days": "2119 - 2122",
                        "times": [
                            "08:30 - 09:30",
                            "10:30 - 11:00",
                            "11:15 - 11:30",
                            "11:30 - 12:45"
                        ]
                    },
                    {
                        "days": "2130",
                        "times": [
                            "14:00 - 15:30",
                            "16:30 - 17:00",
                            "17:15 - 18:15"
                        ]
                    },
                    {
                        "days": "2131",
                        "times": [
                            "11:30 - 17:15"
                        ]
                    }
                ]
            },
            {
                "name": "6573",
                "description": null,
                "type": "takeout",
                "hours": [
                    {
                        "days": "2125",
                        "times": [
                            "10:30 - 12:45",
                            "10:30 - 12:45",
                            "10:30 - 12:45",
                            "10:30 - 12:45",
                            "3841"
                        ]
                    },
                    {
                        "days": "2119 - 2121",
                        "times": [
                            "10:30 - 12:45",
                            "3841"
                        ]
                    },
                    {
                        "days": "2129",
                        "times": [
                            "07:00 - 07:30",
                            "08:30 - 09:00",
                            "09:00 - 09:15",
                            "09:30 - 10:00",
                            "10:00 - 10:45",
                            "11:00 - 12:00",
                            "3841"
                        ]
                    },
                    {
                        "days": "2130",
                        "times": [
                            "12:15 - 13:30",
                            "14:00 - 15:30",
                            "3841"
                        ]
                    },
                    {
                        "days": "2131",
                        "times": [
                            "10:45 - 12:15",
                            "12:30 - 13:30",
                            "13:45 - 14:15",
                            "15:00 - 15:15",
                            "15:15 - 15:30",
                            "3841"
                        ]
                    }
                ]
            },
            {
                "name": "6574",
                "description": null,
                "type": "delivery",
                "hours": [
                    {
                        "days": "2125",
                        "times": [
                            "06:15 - 10:30",
                            "3841"
                        ]
                    },
                    {
                        "days": "2126",
                        "times": [
                            "06:30 - 07:45",
                            "09:15 - 10:00",
                            "11:15 - 12:15",
                            "14:00 - 15:30",
                            "3841"
                        ]
                    },
                    {
                        "days": "2127",
                        "times": [
                            "06:00 - 19:00",
                            "3841"
                        ]
                    },
                    {
                        "days": "2128",
                        "times": [
                            "16:15 - 16:30",
                            "17:00 - 17:30",
                            "17:45 - 18:30",
                            "18:30 - 19:00",
                            "19:00 - 19:15",
                            "19:15 - 19:30",
                            "3841"
                        ]
                    },
                    {
                        "days": "2129",
                        "times": [
                            "15:30 - 15:45",
                            "15:45 - 16:00",
                            "16:00 - 16:15",
                            "16:15 - 17:15",
                            "17:15 - 17:30",
                            "15:30 - 15:45",
                            "15:45 - 16:00",
                            "16:00 - 16:15",
                            "16:15 - 17:15",
                            "17:15 - 17:30",
                            "3841"
                        ]
                    },
                    {
                        "days": "2130",
                        "times": [
                            "15:30 - 15:45",
                            "15:45 - 16:00",
                            "16:00 - 16:15",
                            "16:15 - 17:15",
                            "17:15 - 17:30",
                            "3841"
                        ]
                    },
                    {
                        "days": "2131",
                        "times": [
                            "11:15 - 11:30",
                            "12:00 - 12:15",
                            "14:00 - 14:30",
                            "15:30 - 15:45",
                            "3841"
                        ]
                    }
                ]
            }
        ],
        "contact": {
            "address": {
                "street": "Demirdreef",
                "nr": "43",
                "zipcode": "7800",
                "city": "Herve",
                "country": "BE"
            },
            "telephone": "+32 479 44 77 88",
            "vat": "BE 0343882896",
            "social": {},
            "website": null,
            "email": "janne.poncelet@example.org"
        },
        "messages": [],
        "info": []
    }
]

Example response 4 User with orders filtered on company id

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

[
    {
        "id": 3084,
        "name": "The Torpedough",
        "address": {
            "street": "Collignonboulevard",
            "nr": "92",
            "zipcode": "4880",
            "city": "Binche",
            "country": "BE",
            "position": {
                "latitude": 51.05,
                "longitude": 3.71667
            }
        },
        "allow_comments": false,
        "currency": "EUR",
        "images": {
            "avatar": {
                "resolutions": [
                    {
                        "src": "https://bakeronline.be/uploads/shop-avatars/3084/180x180/patisserie-lieven.jpg",
                        "width": 215,
                        "height": 180
                    },
                    {
                        "src": "https://bakeronline.be/uploads/shop-avatars/3084/360x360/patisserie-lieven.jpg",
                        "width": 300,
                        "height": 251
                    }
                ]
            }
        },
        "allow_orders": true,
        "delivery_use_intervals": false,
        "categories": [
            {
                "id": 4132,
                "name": "DeepSkyBlue",
                "banner": null,
                "seo": {
                    "title": [],
                    "description": [],
                    "url": []
                }
            }
        ],
        "offers": [],
        "category_groups": [],
        "hours": [
            {
                "name": "6572",
                "description": null,
                "type": "open",
                "hours": [
                    {
                        "days": "2125",
                        "times": [
                            "05:15 - 06:45",
                            "07:30 - 08:15",
                            "09:30 - 10:45",
                            "11:15 - 12:45",
                            "12:45 - 13:30",
                            "13:30 - 13:45",
                            "05:15 - 06:45",
                            "07:30 - 08:15",
                            "09:30 - 10:45",
                            "11:15 - 12:45",
                            "12:45 - 13:30",
                            "13:30 - 13:45"
                        ]
                    },
                    {
                        "days": "2126",
                        "times": [
                            "05:15 - 06:45",
                            "07:30 - 08:15",
                            "09:30 - 10:45",
                            "11:15 - 12:45",
                            "12:45 - 13:30",
                            "13:30 - 13:45"
                        ]
                    },
                    {
                        "days": "2127",
                        "times": [
                            "14:15 - 14:45",
                            "14:45 - 17:30"
                        ]
                    },
                    {
                        "days": "2128",
                        "times": [
                            "10:45 - 11:30",
                            "12:45 - 13:30",
                            "16:00 - 16:15",
                            "10:45 - 11:30",
                            "12:45 - 13:30",
                            "16:00 - 16:15",
                            "10:45 - 11:30",
                            "12:45 - 13:30",
                            "16:00 - 16:15"
                        ]
                    },
                    {
                        "days": "2122 - 2123",
                        "times": [
                            "10:45 - 11:30",
                            "12:45 - 13:30",
                            "16:00 - 16:15"
                        ]
                    },
                    {
                        "days": "2131",
                        "times": [
                            "14:30 - 16:15",
                            "16:30 - 18:00",
                            "18:15 - 18:45"
                        ]
                    }
                ]
            },
            {
                "name": "6573",
                "description": null,
                "type": "takeout",
                "hours": [
                    {
                        "days": "2125",
                        "times": [
                            "08:15 - 10:30",
                            "12:45 - 13:15",
                            "14:30 - 15:00",
                            "08:15 - 10:30",
                            "12:45 - 13:15",
                            "14:30 - 15:00",
                            "08:15 - 10:30",
                            "12:45 - 13:15",
                            "14:30 - 15:00",
                            "3841"
                        ]
                    },
                    {
                        "days": "2119 - 2120",
                        "times": [
                            "08:15 - 10:30",
                            "12:45 - 13:15",
                            "14:30 - 15:00",
                            "3841"
                        ]
                    },
                    {
                        "days": "2128",
                        "times": [
                            "09:45 - 10:15",
                            "10:45 - 11:30",
                            "14:00 - 15:15",
                            "3841"
                        ]
                    },
                    {
                        "days": "2129",
                        "times": [
                            "10:15 - 11:15",
                            "12:00 - 12:45",
                            "13:30 - 13:45",
                            "13:45 - 15:15",
                            "3841"
                        ]
                    },
                    {
                        "days": "2130",
                        "times": [
                            "05:30 - 09:15",
                            "09:45 - 10:00",
                            "05:30 - 09:15",
                            "09:45 - 10:00",
                            "3841"
                        ]
                    },
                    {
                        "days": "2131",
                        "times": [
                            "05:30 - 09:15",
                            "09:45 - 10:00",
                            "3841"
                        ]
                    }
                ]
            },
            {
                "name": "6574",
                "description": null,
                "type": "delivery",
                "hours": [
                    {
                        "days": "2125",
                        "times": [
                            "12:15 - 13:15",
                            "12:15 - 13:15",
                            "12:15 - 13:15",
                            "3841"
                        ]
                    },
                    {
                        "days": "2119 - 2120",
                        "times": [
                            "12:15 - 13:15",
                            "3841"
                        ]
                    },
                    {
                        "days": "2128",
                        "times": [
                            "09:15 - 14:15",
                            "3841"
                        ]
                    },
                    {
                        "days": "2129",
                        "times": [
                            "13:45 - 14:00",
                            "15:00 - 16:00",
                            "16:30 - 16:45",
                            "13:45 - 14:00",
                            "15:00 - 16:00",
                            "16:30 - 16:45",
                            "3841"
                        ]
                    },
                    {
                        "days": "2130",
                        "times": [
                            "13:45 - 14:00",
                            "15:00 - 16:00",
                            "16:30 - 16:45",
                            "3841"
                        ]
                    },
                    {
                        "days": "2131",
                        "times": [
                            "12:00 - 12:15",
                            "13:15 - 13:45",
                            "13:45 - 14:00",
                            "14:00 - 14:45",
                            "15:30 - 16:00",
                            "16:30 - 17:00",
                            "3841"
                        ]
                    }
                ]
            },
            {
                "name": "Mohammed Grégoire",
                "description": "Moreauring 20, 5537 Beaumont (1903)",
                "type": "latch",
                "hours": [
                    {
                        "days": "2118 - 2124",
                        "times": [
                            "3507"
                        ]
                    }
                ]
            }
        ],
        "contact": {
            "address": {
                "street": "Collignonboulevard",
                "nr": "92",
                "zipcode": "4880",
                "city": "Binche",
                "country": "BE"
            },
            "telephone": "+32 479 44 77 88",
            "vat": "BE 0730571380",
            "social": {},
            "website": null,
            "email": "febe.adam@example.org"
        },
        "messages": [],
        "info": []
    }
]
Version update available Please adjust your integration to the latest stable version (1.5.2)
1.5.0 stable