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

GET /shops/recent?company_id=17 HTTP/1.1
Host: api.bakeronline.be
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

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

[
    {
        "id": 11,
        "name": "Mr. Major Greenholt",
        "address": {
            "street": "Sint-Denijslaan",
            "nr": "96",
            "zipcode": "9000",
            "city": "Gent",
            "country": "BE",
            "position": {
                "latitude": 1.54361,
                "longitude": 0.45645
            }
        },
        "allow_comments": true,
        "offers": [
            {
                "id": 12,
                "name": "Black Friday"
            },
            {
                "id": 15,
                "name": "Black Friday"
            },
            {
                "id": 15,
                "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": true,
        "delivery_use_intervals": true,
        "categories": [
            {
                "id": 19,
                "name": "Mr. Clay Tromp",
                "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": "Porro sapiente velit nesciunt numquam eligendi.",
                    "description": "Ipsa eos saepe voluptas deserunt eos. Corporis sunt qui aliquid voluptatem numquam id sint.",
                    "url": "http://www.gislason.com/et-repudiandae-at-dolores-possimus.html"
                }
            },
            {
                "id": 13,
                "name": "Cale Walker",
                "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": "Sint dolores autem dolore ab blanditiis.",
                    "description": "Sint praesentium vitae aspernatur enim voluptas ut. Numquam aut dolor dicta delectus repellendus rerum. Assumenda et voluptatem explicabo ex id.",
                    "url": "http://www.bernier.com/"
                }
            },
            {
                "id": 19,
                "name": "Lenora Heathcote IV",
                "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": "Sit corporis enim omnis fuga et et laborum repellat.",
                    "description": "Consequatur porro consectetur placeat rerum. Temporibus dolorem ea cumque consequuntur. Ratione eum aut ut nam. Expedita rerum quis et sunt.",
                    "url": "http://www.pagac.com/consequatur-ipsam-ut-impedit-quam-soluta-est-beatae-in.html"
                }
            }
        ],
        "category_groups": [
            {
                "name": "...",
                "category_ids": [
                    10,
                    12,
                    17
                ]
            },
            {
                "name": "...",
                "category_ids": [
                    16,
                    17,
                    18
                ]
            },
            {
                "name": "...",
                "category_ids": [
                    13,
                    14,
                    16
                ]
            }
        ],
        "hours": [
            {
                "name": "...",
                "description": "...",
                "type": "open",
                "hours": [
                    {
                        "days": "5",
                        "times": [
                            "08:36 - 10:34",
                            "08:36 - 10:34",
                            "08:36 - 10:34"
                        ]
                    },
                    {
                        "days": "5",
                        "times": [
                            "08:52 - 11:58",
                            "08:52 - 11:58",
                            "08:52 - 11:58"
                        ]
                    },
                    {
                        "days": "5",
                        "times": [
                            "07:42 - 10:49",
                            "07:42 - 10:49",
                            "07:42 - 10:49"
                        ]
                    }
                ]
            },
            {
                "name": "...",
                "description": "...",
                "type": "open",
                "hours": [
                    {
                        "days": "5",
                        "times": [
                            "07:32 - 13:32",
                            "07:32 - 13:32",
                            "07:32 - 13:32"
                        ]
                    },
                    {
                        "days": "5",
                        "times": [
                            "08:20 - 17:38",
                            "08:20 - 17:38",
                            "08:20 - 17:38"
                        ]
                    },
                    {
                        "days": "5",
                        "times": [
                            "08:33 - 12:37",
                            "08:33 - 12:37",
                            "08:33 - 12:37"
                        ]
                    }
                ]
            },
            {
                "name": "...",
                "description": "...",
                "type": "open",
                "hours": [
                    {
                        "days": "5",
                        "times": [
                            "08:17 - 13:48",
                            "08:17 - 13:48",
                            "08:17 - 13:48"
                        ]
                    },
                    {
                        "days": "5",
                        "times": [
                            "06:16 - 18:21",
                            "06:16 - 18:21",
                            "06:16 - 18:21"
                        ]
                    },
                    {
                        "days": "5",
                        "times": [
                            "06:14 - 13:44",
                            "06:14 - 13:44",
                            "06:14 - 13:44"
                        ]
                    }
                ]
            }
        ],
        "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"
    },
    {
        "id": 13,
        "name": "Urban Corkery",
        "address": {
            "street": "Sint-Denijslaan",
            "nr": "96",
            "zipcode": "9000",
            "city": "Gent",
            "country": "BE",
            "position": {
                "latitude": 1.54361,
                "longitude": 0.45645
            }
        },
        "allow_comments": true,
        "offers": [
            {
                "id": 11,
                "name": "Black Friday"
            },
            {
                "id": 16,
                "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": false
            }
        },
        "allow_orders": false,
        "delivery_use_intervals": false,
        "categories": [
            {
                "id": 11,
                "name": "Wilson Predovic",
                "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": "Et repudiandae illum quasi tempora ad numquam.",
                    "description": "Dolor at ea eum facilis assumenda iusto sapiente. Adipisci ut quam qui magnam perspiciatis vero. Suscipit amet voluptas nam ut nisi et adipisci. Impedit modi repellendus consequatur omnis.",
                    "url": "http://www.larson.com/doloribus-facere-consequatur-ea-magnam-culpa-inventore-fuga"
                }
            },
            {
                "id": 15,
                "name": "Mae Toy Jr.",
                "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": "Autem totam enim delectus voluptas cum ut officiis sint et.",
                    "description": "Et et voluptas veniam officia dolorem aut perferendis. Possimus et temporibus qui repellendus sit atque dicta.",
                    "url": "http://www.balistreri.org/accusamus-quasi-perspiciatis-et"
                }
            },
            {
                "id": 17,
                "name": "Mr. Timothy Robel DVM",
                "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 magnam ea maxime rerum nulla aut.",
                    "description": "Harum ipsa aut modi qui voluptas ullam. Rerum aut natus iure quis dolor nulla odit. Quas odit architecto omnis nobis vitae dolor qui. Accusamus velit repellendus maxime.",
                    "url": "http://wyman.org/in-est-deserunt-accusamus-dicta"
                }
            }
        ],
        "category_groups": [
            {
                "name": "...",
                "category_ids": [
                    17,
                    17,
                    12
                ]
            },
            {
                "name": "...",
                "category_ids": [
                    13,
                    13,
                    17
                ]
            },
            {
                "name": "...",
                "category_ids": [
                    16,
                    16,
                    11
                ]
            }
        ],
        "hours": [
            {
                "name": "...",
                "description": "...",
                "type": "open",
                "hours": [
                    {
                        "days": "5",
                        "times": [
                            "06:30 - 15:43",
                            "06:30 - 15:43",
                            "06:30 - 15:43"
                        ]
                    },
                    {
                        "days": "5",
                        "times": [
                            "06:33 - 17:46",
                            "06:33 - 17:46",
                            "06:33 - 17:46"
                        ]
                    },
                    {
                        "days": "5",
                        "times": [
                            "07:36 - 19:15",
                            "07:36 - 19:15",
                            "07:36 - 19:15"
                        ]
                    }
                ]
            },
            {
                "name": "...",
                "description": "...",
                "type": "open",
                "hours": [
                    {
                        "days": "5",
                        "times": [
                            "08:30 - 19:20",
                            "08:30 - 19:20",
                            "08:30 - 19:20"
                        ]
                    },
                    {
                        "days": "5",
                        "times": [
                            "08:43 - 10:56",
                            "08:43 - 10:56",
                            "08:43 - 10:56"
                        ]
                    },
                    {
                        "days": "5",
                        "times": [
                            "07:38 - 13:53",
                            "07:38 - 13:53",
                            "07:38 - 13:53"
                        ]
                    }
                ]
            },
            {
                "name": "...",
                "description": "...",
                "type": "open",
                "hours": [
                    {
                        "days": "5",
                        "times": [
                            "07:49 - 15:33",
                            "07:49 - 15:33",
                            "07:49 - 15:33"
                        ]
                    },
                    {
                        "days": "5",
                        "times": [
                            "07:21 - 16:38",
                            "07:21 - 16:38",
                            "07:21 - 16:38"
                        ]
                    },
                    {
                        "days": "5",
                        "times": [
                            "07:37 - 19:23",
                            "07:37 - 19:23",
                            "07:37 - 19:23"
                        ]
                    }
                ]
            }
        ],
        "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"
    },
    {
        "id": 16,
        "name": "Mable Langosh",
        "address": {
            "street": "Sint-Denijslaan",
            "nr": "96",
            "zipcode": "9000",
            "city": "Gent",
            "country": "BE",
            "position": {
                "latitude": 1.54361,
                "longitude": 0.45645
            }
        },
        "allow_comments": true,
        "offers": [
            {
                "id": 13,
                "name": "Black Friday"
            },
            {
                "id": 12,
                "name": "Black Friday"
            },
            {
                "id": 10,
                "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": true,
        "delivery_use_intervals": false,
        "categories": [
            {
                "id": 12,
                "name": "Miss Irma Crooks PhD",
                "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": "Adipisci sed dignissimos possimus accusantium rem voluptates sit veritatis qui in sit.",
                    "description": "Itaque facere qui vero quas autem dolores aliquam. Atque distinctio non temporibus. Et eligendi ea optio id quidem sed sunt dolorum. Ipsam explicabo aut dicta porro reprehenderit mollitia.",
                    "url": "http://www.bernhard.biz/voluptatem-quia-natus-minus-dolores-doloremque-sed-in.html"
                }
            },
            {
                "id": 12,
                "name": "Kane Murazik V",
                "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": "Veritatis et corporis enim officiis labore excepturi.",
                    "description": "Occaecati consequatur sit unde non provident totam laborum sit. Autem aut tempore enim mollitia a aut cum.",
                    "url": "http://www.eichmann.com/non-tenetur-dolore-voluptates.html"
                }
            },
            {
                "id": 12,
                "name": "Kathryne Gorczany",
                "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": "Molestiae sint modi corrupti quae ipsa.",
                    "description": "Fugit laboriosam odio mollitia maxime. Porro et omnis esse est. Excepturi sed ipsum necessitatibus et.",
                    "url": "http://www.cummings.com/ut-occaecati-quia-maxime-odit-perspiciatis-fugit-aut"
                }
            }
        ],
        "category_groups": [
            {
                "name": "...",
                "category_ids": [
                    13,
                    12,
                    16
                ]
            },
            {
                "name": "...",
                "category_ids": [
                    10,
                    18,
                    13
                ]
            },
            {
                "name": "...",
                "category_ids": [
                    18,
                    16,
                    18
                ]
            }
        ],
        "hours": [
            {
                "name": "...",
                "description": "...",
                "type": "open",
                "hours": [
                    {
                        "days": "5",
                        "times": [
                            "07:38 - 12:58",
                            "07:38 - 12:58",
                            "07:38 - 12:58"
                        ]
                    },
                    {
                        "days": "5",
                        "times": [
                            "08:14 - 16:56",
                            "08:14 - 16:56",
                            "08:14 - 16:56"
                        ]
                    },
                    {
                        "days": "5",
                        "times": [
                            "08:50 - 20:10",
                            "08:50 - 20:10",
                            "08:50 - 20:10"
                        ]
                    }
                ]
            },
            {
                "name": "...",
                "description": "...",
                "type": "open",
                "hours": [
                    {
                        "days": "5",
                        "times": [
                            "07:15 - 16:47",
                            "07:15 - 16:47",
                            "07:15 - 16:47"
                        ]
                    },
                    {
                        "days": "5",
                        "times": [
                            "07:26 - 21:52",
                            "07:26 - 21:52",
                            "07:26 - 21:52"
                        ]
                    },
                    {
                        "days": "5",
                        "times": [
                            "09:21 - 13:11",
                            "09:21 - 13:11",
                            "09:21 - 13:11"
                        ]
                    }
                ]
            },
            {
                "name": "...",
                "description": "...",
                "type": "open",
                "hours": [
                    {
                        "days": "5",
                        "times": [
                            "07:27 - 15:47",
                            "07:27 - 15:47",
                            "07:27 - 15:47"
                        ]
                    },
                    {
                        "days": "5",
                        "times": [
                            "08:49 - 17:53",
                            "08:49 - 17:53",
                            "08:49 - 17:53"
                        ]
                    },
                    {
                        "days": "5",
                        "times": [
                            "06:14 - 10:56",
                            "06:14 - 10:56",
                            "06:14 - 10:56"
                        ]
                    }
                ]
            }
        ],
        "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