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=10 HTTP/1.1
Host: api.bakeronline.be
X-VERSION: 1.4.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
offers [Offer.simple] Array of Offer.simple
images [String: Image] Dictionary of Image with keys of type String
allow_comments Bool A boolean value
allow_orders Bool A boolean value
delivery_use_intervals Bool A boolean value
categories [Category.simple] Array of Category.simple
category_groups [CategoryGroup] List of category groups. The ids refer to a category in the categories field. Categories without a CategoryGroup should also get displayed.
hours [MethodHours] Information about the opening hours, delivery hours... for all available methods and machines
contact Contact Contact details of a shop
messages [Message] You are required to keep track of the messages the user saw. When you receive new messages, you should indicate this in the app with a bubble icon (e.g. red circle with number of new messages)
info [Message] Same as messages, but you shouldn't notify the user when this changes or is received for the first time
currency Currency 3 letter ISO 4217 currency name (string)

Example response 1

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

[
    {
        "id": 17,
        "name": "Mrs. Emie Gislason DVM",
        "address": {
            "street": "Sint-Denijslaan",
            "nr": "96",
            "zipcode": "9000",
            "city": "Gent",
            "country": "BE",
            "position": {
                "latitude": 1.54361,
                "longitude": 0.45645
            }
        },
        "offers": [
            {
                "id": 11,
                "name": "Black Friday"
            },
            {
                "id": 10,
                "name": "Black Friday"
            },
            {
                "id": 17,
                "name": "Black Friday"
            }
        ],
        "images": {
            "avatar": {
                "resolutions": [
                    {
                        "src": "https://example.com",
                        "width": 600,
                        "height": 350
                    },
                    {
                        "src": "https://example.com",
                        "width": 600,
                        "height": 350
                    },
                    {
                        "src": "https://example.com",
                        "width": 600,
                        "height": 350
                    }
                ],
                "white_background": true
            }
        },
        "allow_comments": false,
        "allow_orders": true,
        "delivery_use_intervals": true,
        "categories": [
            {
                "id": 19,
                "name": "Dr. Itzel Sanford",
                "banner": {
                    "resolutions": [
                        {
                            "src": "https://example.com",
                            "width": 600,
                            "height": 350
                        },
                        {
                            "src": "https://example.com",
                            "width": 600,
                            "height": 350
                        },
                        {
                            "src": "https://example.com",
                            "width": 600,
                            "height": 350
                        }
                    ],
                    "white_background": true
                },
                "seo": {
                    "title": {
                        "en": "Quo ex non debitis veritatis blanditiis fugiat."
                    },
                    "description": {
                        "en": "Quia quis itaque rem saepe pariatur modi dolor consequuntur. Qui et sed enim ea. Praesentium praesentium accusamus aut vel."
                    },
                    "url": {
                        "en": "http://www.bergnaum.com/debitis-mollitia-quos-et-consequatur-officia-veniam-eligendi-nam"
                    }
                }
            },
            {
                "id": 10,
                "name": "Dr. Philip Lindgren 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": {
                        "en": "Autem ut inventore nulla id voluptatum cupiditate."
                    },
                    "description": {
                        "en": "Voluptates aperiam quisquam repellat. Perspiciatis dicta qui et reiciendis. Cum molestiae iure in labore excepturi optio architecto. Sunt error architecto quaerat explicabo iste beatae."
                    },
                    "url": {
                        "en": "http://funk.com/totam-optio-id-voluptates-sequi"
                    }
                }
            },
            {
                "id": 13,
                "name": "Annabel Hagenes",
                "banner": {
                    "resolutions": [
                        {
                            "src": "https://example.com",
                            "width": 600,
                            "height": 350
                        },
                        {
                            "src": "https://example.com",
                            "width": 600,
                            "height": 350
                        },
                        {
                            "src": "https://example.com",
                            "width": 600,
                            "height": 350
                        }
                    ],
                    "white_background": false
                },
                "seo": {
                    "title": {
                        "en": "Impedit deleniti voluptate porro maiores quaerat aliquam amet non."
                    },
                    "description": {
                        "en": "Sunt libero dolorem architecto deserunt. Rerum repellat soluta totam in. Aut facere voluptatem et voluptatem vel sed architecto."
                    },
                    "url": {
                        "en": "https://www.huels.com/voluptas-quo-tempore-distinctio-ducimus-dolores-dolores-odio"
                    }
                }
            }
        ],
        "category_groups": [
            {
                "name": "...",
                "category_ids": [
                    18,
                    14,
                    13
                ]
            },
            {
                "name": "...",
                "category_ids": [
                    12,
                    12,
                    14
                ]
            },
            {
                "name": "...",
                "category_ids": [
                    15,
                    14,
                    12
                ]
            }
        ],
        "hours": [
            {
                "name": "...",
                "description": "...",
                "type": "open",
                "hours": [
                    {
                        "days": "5",
                        "times": [
                            "06:50 - 11:44",
                            "06:50 - 11:44",
                            "06:50 - 11:44"
                        ]
                    },
                    {
                        "days": "5",
                        "times": [
                            "09:49 - 17:12",
                            "09:49 - 17:12",
                            "09:49 - 17:12"
                        ]
                    },
                    {
                        "days": "5",
                        "times": [
                            "09:16 - 14:26",
                            "09:16 - 14:26",
                            "09:16 - 14:26"
                        ]
                    }
                ]
            },
            {
                "name": "...",
                "description": "...",
                "type": "open",
                "hours": [
                    {
                        "days": "5",
                        "times": [
                            "09:34 - 10:13",
                            "09:34 - 10:13",
                            "09:34 - 10:13"
                        ]
                    },
                    {
                        "days": "5",
                        "times": [
                            "07:40 - 18:25",
                            "07:40 - 18:25",
                            "07:40 - 18:25"
                        ]
                    },
                    {
                        "days": "5",
                        "times": [
                            "06:28 - 18:54",
                            "06:28 - 18:54",
                            "06:28 - 18:54"
                        ]
                    }
                ]
            },
            {
                "name": "...",
                "description": "...",
                "type": "open",
                "hours": [
                    {
                        "days": "5",
                        "times": [
                            "06:38 - 16:11",
                            "06:38 - 16:11",
                            "06:38 - 16:11"
                        ]
                    },
                    {
                        "days": "5",
                        "times": [
                            "07:29 - 17:12",
                            "07:29 - 17:12",
                            "07:29 - 17:12"
                        ]
                    },
                    {
                        "days": "5",
                        "times": [
                            "07:46 - 15:46",
                            "07:46 - 15:46",
                            "07:46 - 15:46"
                        ]
                    }
                ]
            }
        ],
        "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": 12,
        "name": "Hank Bartoletti",
        "address": {
            "street": "Sint-Denijslaan",
            "nr": "96",
            "zipcode": "9000",
            "city": "Gent",
            "country": "BE",
            "position": {
                "latitude": 1.54361,
                "longitude": 0.45645
            }
        },
        "offers": [
            {
                "id": 19,
                "name": "Black Friday"
            },
            {
                "id": 12,
                "name": "Black Friday"
            },
            {
                "id": 17,
                "name": "Black Friday"
            }
        ],
        "images": {
            "avatar": {
                "resolutions": [
                    {
                        "src": "https://example.com",
                        "width": 600,
                        "height": 350
                    },
                    {
                        "src": "https://example.com",
                        "width": 600,
                        "height": 350
                    },
                    {
                        "src": "https://example.com",
                        "width": 600,
                        "height": 350
                    }
                ],
                "white_background": true
            }
        },
        "allow_comments": false,
        "allow_orders": false,
        "delivery_use_intervals": true,
        "categories": [
            {
                "id": 17,
                "name": "Deron Satterfield II",
                "banner": {
                    "resolutions": [
                        {
                            "src": "https://example.com",
                            "width": 600,
                            "height": 350
                        },
                        {
                            "src": "https://example.com",
                            "width": 600,
                            "height": 350
                        },
                        {
                            "src": "https://example.com",
                            "width": 600,
                            "height": 350
                        }
                    ],
                    "white_background": false
                },
                "seo": {
                    "title": {
                        "en": "Modi voluptates numquam laboriosam facere omnis temporibus."
                    },
                    "description": {
                        "en": "Minima qui nostrum placeat dignissimos. Minus ea dolores omnis hic incidunt nobis. Voluptatem rerum perspiciatis ut odit aut corporis officiis qui."
                    },
                    "url": {
                        "en": "http://www.reilly.com/cum-similique-dolorum-soluta.html"
                    }
                }
            },
            {
                "id": 11,
                "name": "Maude Davis 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": true
                },
                "seo": {
                    "title": {
                        "en": "Ipsam voluptas optio quisquam officiis quae eius omnis ipsum assumenda nostrum."
                    },
                    "description": {
                        "en": "Id autem provident praesentium enim voluptates et. Est quis nihil est in est voluptatum qui. Excepturi ipsum quos fugit voluptatum excepturi. Velit et quaerat nihil a."
                    },
                    "url": {
                        "en": "http://schultz.com/"
                    }
                }
            },
            {
                "id": 15,
                "name": "Dr. Jayme Rosenbaum Sr.",
                "banner": {
                    "resolutions": [
                        {
                            "src": "https://example.com",
                            "width": 600,
                            "height": 350
                        },
                        {
                            "src": "https://example.com",
                            "width": 600,
                            "height": 350
                        },
                        {
                            "src": "https://example.com",
                            "width": 600,
                            "height": 350
                        }
                    ],
                    "white_background": true
                },
                "seo": {
                    "title": {
                        "en": "Magnam rem facere molestiae iste corrupti ullam."
                    },
                    "description": {
                        "en": "In qui cupiditate libero placeat eum eos reiciendis. Dicta quo iusto velit autem. Quisquam repudiandae ex qui."
                    },
                    "url": {
                        "en": "http://wuckert.org/omnis-sint-quibusdam-officiis-placeat"
                    }
                }
            }
        ],
        "category_groups": [
            {
                "name": "...",
                "category_ids": [
                    18,
                    12,
                    13
                ]
            },
            {
                "name": "...",
                "category_ids": [
                    18,
                    10,
                    18
                ]
            },
            {
                "name": "...",
                "category_ids": [
                    16,
                    17,
                    12
                ]
            }
        ],
        "hours": [
            {
                "name": "...",
                "description": "...",
                "type": "open",
                "hours": [
                    {
                        "days": "5",
                        "times": [
                            "08:44 - 13:12",
                            "08:44 - 13:12",
                            "08:44 - 13:12"
                        ]
                    },
                    {
                        "days": "5",
                        "times": [
                            "08:23 - 11:55",
                            "08:23 - 11:55",
                            "08:23 - 11:55"
                        ]
                    },
                    {
                        "days": "5",
                        "times": [
                            "09:44 - 18:39",
                            "09:44 - 18:39",
                            "09:44 - 18:39"
                        ]
                    }
                ]
            },
            {
                "name": "...",
                "description": "...",
                "type": "open",
                "hours": [
                    {
                        "days": "5",
                        "times": [
                            "07:15 - 16:53",
                            "07:15 - 16:53",
                            "07:15 - 16:53"
                        ]
                    },
                    {
                        "days": "5",
                        "times": [
                            "08:52 - 15:45",
                            "08:52 - 15:45",
                            "08:52 - 15:45"
                        ]
                    },
                    {
                        "days": "5",
                        "times": [
                            "06:37 - 10:17",
                            "06:37 - 10:17",
                            "06:37 - 10:17"
                        ]
                    }
                ]
            },
            {
                "name": "...",
                "description": "...",
                "type": "open",
                "hours": [
                    {
                        "days": "5",
                        "times": [
                            "06:35 - 20:49",
                            "06:35 - 20:49",
                            "06:35 - 20:49"
                        ]
                    },
                    {
                        "days": "5",
                        "times": [
                            "06:30 - 10:21",
                            "06:30 - 10:21",
                            "06:30 - 10:21"
                        ]
                    },
                    {
                        "days": "5",
                        "times": [
                            "09:46 - 17:32",
                            "09:46 - 17:32",
                            "09:46 - 17:32"
                        ]
                    }
                ]
            }
        ],
        "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": 12,
        "name": "Hadley Durgan",
        "address": {
            "street": "Sint-Denijslaan",
            "nr": "96",
            "zipcode": "9000",
            "city": "Gent",
            "country": "BE",
            "position": {
                "latitude": 1.54361,
                "longitude": 0.45645
            }
        },
        "offers": [
            {
                "id": 10,
                "name": "Black Friday"
            },
            {
                "id": 13,
                "name": "Black Friday"
            },
            {
                "id": 17,
                "name": "Black Friday"
            }
        ],
        "images": {
            "avatar": {
                "resolutions": [
                    {
                        "src": "https://example.com",
                        "width": 600,
                        "height": 350
                    },
                    {
                        "src": "https://example.com",
                        "width": 600,
                        "height": 350
                    },
                    {
                        "src": "https://example.com",
                        "width": 600,
                        "height": 350
                    }
                ],
                "white_background": true
            }
        },
        "allow_comments": false,
        "allow_orders": false,
        "delivery_use_intervals": false,
        "categories": [
            {
                "id": 14,
                "name": "Melvina Russel 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": {
                        "en": "Expedita nam cum hic quae itaque eligendi iure."
                    },
                    "description": {
                        "en": "Ullam blanditiis enim veritatis sit ut. Cum corrupti voluptates quaerat dolorem alias dolorem. Ipsa est ducimus labore qui maiores. Qui itaque ipsum voluptatem."
                    },
                    "url": {
                        "en": "http://www.cartwright.biz/soluta-blanditiis-provident-sequi-officia-magnam-veritatis-ab.html"
                    }
                }
            },
            {
                "id": 19,
                "name": "Lindsey Leannon I",
                "banner": {
                    "resolutions": [
                        {
                            "src": "https://example.com",
                            "width": 600,
                            "height": 350
                        },
                        {
                            "src": "https://example.com",
                            "width": 600,
                            "height": 350
                        },
                        {
                            "src": "https://example.com",
                            "width": 600,
                            "height": 350
                        }
                    ],
                    "white_background": true
                },
                "seo": {
                    "title": {
                        "en": "Doloremque asperiores accusantium perferendis molestias error nemo ipsum perspiciatis praesentium neque."
                    },
                    "description": {
                        "en": "Est reprehenderit fugit minus facere exercitationem. Ratione ratione architecto eaque dolorum temporibus. Cumque optio omnis facilis sed ducimus accusamus consequuntur."
                    },
                    "url": {
                        "en": "https://www.littel.info/amet-perferendis-et-ut-ut-eos-quia-ut-voluptatum"
                    }
                }
            },
            {
                "id": 12,
                "name": "Daniella Larson",
                "banner": {
                    "resolutions": [
                        {
                            "src": "https://example.com",
                            "width": 600,
                            "height": 350
                        },
                        {
                            "src": "https://example.com",
                            "width": 600,
                            "height": 350
                        },
                        {
                            "src": "https://example.com",
                            "width": 600,
                            "height": 350
                        }
                    ],
                    "white_background": false
                },
                "seo": {
                    "title": {
                        "en": "Ut doloribus voluptatum in ad magni est et sit."
                    },
                    "description": {
                        "en": "Voluptas eveniet dolorum nam dolor aut. Velit occaecati explicabo soluta dolor ad similique."
                    },
                    "url": {
                        "en": "http://padberg.com/et-et-est-aspernatur-error-tempora-enim"
                    }
                }
            }
        ],
        "category_groups": [
            {
                "name": "...",
                "category_ids": [
                    16,
                    11,
                    15
                ]
            },
            {
                "name": "...",
                "category_ids": [
                    13,
                    16,
                    17
                ]
            },
            {
                "name": "...",
                "category_ids": [
                    18,
                    11,
                    14
                ]
            }
        ],
        "hours": [
            {
                "name": "...",
                "description": "...",
                "type": "open",
                "hours": [
                    {
                        "days": "5",
                        "times": [
                            "06:38 - 19:26",
                            "06:38 - 19:26",
                            "06:38 - 19:26"
                        ]
                    },
                    {
                        "days": "5",
                        "times": [
                            "06:29 - 15:45",
                            "06:29 - 15:45",
                            "06:29 - 15:45"
                        ]
                    },
                    {
                        "days": "5",
                        "times": [
                            "07:30 - 14:18",
                            "07:30 - 14:18",
                            "07:30 - 14:18"
                        ]
                    }
                ]
            },
            {
                "name": "...",
                "description": "...",
                "type": "open",
                "hours": [
                    {
                        "days": "5",
                        "times": [
                            "07:15 - 19:12",
                            "07:15 - 19:12",
                            "07:15 - 19:12"
                        ]
                    },
                    {
                        "days": "5",
                        "times": [
                            "08:30 - 11:39",
                            "08:30 - 11:39",
                            "08:30 - 11:39"
                        ]
                    },
                    {
                        "days": "5",
                        "times": [
                            "06:10 - 10:12",
                            "06:10 - 10:12",
                            "06:10 - 10:12"
                        ]
                    }
                ]
            },
            {
                "name": "...",
                "description": "...",
                "type": "open",
                "hours": [
                    {
                        "days": "5",
                        "times": [
                            "06:33 - 17:28",
                            "06:33 - 17:28",
                            "06:33 - 17:28"
                        ]
                    },
                    {
                        "days": "5",
                        "times": [
                            "08:17 - 20:58",
                            "08:17 - 20:58",
                            "08:17 - 20:58"
                        ]
                    },
                    {
                        "days": "5",
                        "times": [
                            "06:55 - 18:56",
                            "06:55 - 18:56",
                            "06:55 - 18: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.9.0)
1.4.0 stable