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=19 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.simple] Array of Offer.simple
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: 33381

[
    {
        "id": 11,
        "name": "Jesus Dibbert PhD",
        "address": {
            "street": "Sint-Denijslaan",
            "nr": "96",
            "zipcode": "9000",
            "city": "Gent",
            "country": "BE",
            "position": {
                "latitude": 1.54361,
                "longitude": 0.45645
            }
        },
        "allow_comments": true,
        "offers": [
            {
                "id": 15,
                "name": "Black Friday"
            },
            {
                "id": 18,
                "name": "Black Friday"
            },
            {
                "id": 19,
                "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": false,
        "delivery_use_intervals": false,
        "categories": [
            {
                "id": 15,
                "name": "Humberto Maggio 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": "Aut esse sint earum enim temporibus."
                    },
                    "description": {
                        "en": "Doloremque nobis vel sunt accusantium. Nulla totam numquam adipisci sunt ullam. Blanditiis provident modi corporis excepturi harum."
                    },
                    "url": {
                        "en": "http://kuhlman.com/adipisci-sint-reprehenderit-magnam-consequuntur-cumque-omnis-quia.html"
                    }
                }
            },
            {
                "id": 19,
                "name": "Uriel Hintz 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": true
                },
                "seo": {
                    "title": {
                        "en": "Voluptas nostrum similique quam adipisci ratione maiores blanditiis cum voluptas quia."
                    },
                    "description": {
                        "en": "Ea sint et sit. Aut voluptatum qui qui."
                    },
                    "url": {
                        "en": "http://hoppe.com/"
                    }
                }
            },
            {
                "id": 17,
                "name": "Johanna Pacocha",
                "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": "Iure repellendus et a ipsa pariatur consequatur reiciendis quia accusamus accusamus inventore."
                    },
                    "description": {
                        "en": "Accusantium illo repudiandae ipsum tempora repellendus reprehenderit autem. Ipsum autem atque aliquid. Rerum maxime dicta consequatur consequatur quo necessitatibus."
                    },
                    "url": {
                        "en": "http://www.casper.com/"
                    }
                }
            }
        ],
        "category_groups": [
            {
                "name": "...",
                "category_ids": [
                    13,
                    14,
                    11
                ]
            },
            {
                "name": "...",
                "category_ids": [
                    15,
                    18,
                    10
                ]
            },
            {
                "name": "...",
                "category_ids": [
                    13,
                    16,
                    12
                ]
            }
        ],
        "hours": [
            {
                "name": "...",
                "description": "...",
                "type": "open",
                "hours": [
                    {
                        "days": "5",
                        "times": [
                            "09:35 - 20:33",
                            "09:35 - 20:33",
                            "09:35 - 20:33"
                        ]
                    },
                    {
                        "days": "5",
                        "times": [
                            "07:38 - 14:40",
                            "07:38 - 14:40",
                            "07:38 - 14:40"
                        ]
                    },
                    {
                        "days": "5",
                        "times": [
                            "06:55 - 16:30",
                            "06:55 - 16:30",
                            "06:55 - 16:30"
                        ]
                    }
                ]
            },
            {
                "name": "...",
                "description": "...",
                "type": "open",
                "hours": [
                    {
                        "days": "5",
                        "times": [
                            "07:13 - 14:16",
                            "07:13 - 14:16",
                            "07:13 - 14:16"
                        ]
                    },
                    {
                        "days": "5",
                        "times": [
                            "09:38 - 12:13",
                            "09:38 - 12:13",
                            "09:38 - 12:13"
                        ]
                    },
                    {
                        "days": "5",
                        "times": [
                            "08:32 - 17:20",
                            "08:32 - 17:20",
                            "08:32 - 17:20"
                        ]
                    }
                ]
            },
            {
                "name": "...",
                "description": "...",
                "type": "open",
                "hours": [
                    {
                        "days": "5",
                        "times": [
                            "08:38 - 18:32",
                            "08:38 - 18:32",
                            "08:38 - 18:32"
                        ]
                    },
                    {
                        "days": "5",
                        "times": [
                            "08:18 - 13:57",
                            "08:18 - 13:57",
                            "08:18 - 13:57"
                        ]
                    },
                    {
                        "days": "5",
                        "times": [
                            "09:52 - 16:56",
                            "09:52 - 16:56",
                            "09:52 - 16: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"
    },
    {
        "id": 19,
        "name": "Sally Hintz",
        "address": {
            "street": "Sint-Denijslaan",
            "nr": "96",
            "zipcode": "9000",
            "city": "Gent",
            "country": "BE",
            "position": {
                "latitude": 1.54361,
                "longitude": 0.45645
            }
        },
        "allow_comments": false,
        "offers": [
            {
                "id": 18,
                "name": "Black Friday"
            },
            {
                "id": 11,
                "name": "Black Friday"
            },
            {
                "id": 13,
                "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": 11,
                "name": "Guy Braun 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": true
                },
                "seo": {
                    "title": {
                        "en": "Id assumenda esse facilis doloribus optio laborum sunt consequatur aut iusto atque."
                    },
                    "description": {
                        "en": "Dolor modi accusantium dignissimos nihil suscipit sint. Iusto at et unde quae et officiis temporibus maiores."
                    },
                    "url": {
                        "en": "http://www.buckridge.info/"
                    }
                }
            },
            {
                "id": 16,
                "name": "Emmie West",
                "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": "Voluptas vero molestiae autem aperiam voluptatem nihil mollitia harum sed."
                    },
                    "description": {
                        "en": "Quo perspiciatis voluptas ut quasi quia. Consequatur explicabo labore qui quisquam. Sunt sapiente eum eos possimus et doloribus. Vel eum sint esse dolore dolore sapiente."
                    },
                    "url": {
                        "en": "http://www.ritchie.com/voluptatem-et-eius-ea-nihil"
                    }
                }
            },
            {
                "id": 11,
                "name": "Libby Kutch",
                "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": "Nihil eaque id cupiditate in minima."
                    },
                    "description": {
                        "en": "Assumenda quibusdam eos et ex laborum molestiae enim. Recusandae incidunt modi alias eaque. Doloribus ut ad nesciunt. Incidunt voluptas sint et maiores est. Explicabo exercitationem asperiores ut."
                    },
                    "url": {
                        "en": "http://www.glover.com/consequatur-et-pariatur-ipsum-ea"
                    }
                }
            }
        ],
        "category_groups": [
            {
                "name": "...",
                "category_ids": [
                    18,
                    14,
                    11
                ]
            },
            {
                "name": "...",
                "category_ids": [
                    10,
                    13,
                    15
                ]
            },
            {
                "name": "...",
                "category_ids": [
                    15,
                    16,
                    17
                ]
            }
        ],
        "hours": [
            {
                "name": "...",
                "description": "...",
                "type": "open",
                "hours": [
                    {
                        "days": "5",
                        "times": [
                            "08:15 - 17:57",
                            "08:15 - 17:57",
                            "08:15 - 17:57"
                        ]
                    },
                    {
                        "days": "5",
                        "times": [
                            "09:42 - 13:50",
                            "09:42 - 13:50",
                            "09:42 - 13:50"
                        ]
                    },
                    {
                        "days": "5",
                        "times": [
                            "09:40 - 17:43",
                            "09:40 - 17:43",
                            "09:40 - 17:43"
                        ]
                    }
                ]
            },
            {
                "name": "...",
                "description": "...",
                "type": "open",
                "hours": [
                    {
                        "days": "5",
                        "times": [
                            "09:46 - 18:35",
                            "09:46 - 18:35",
                            "09:46 - 18:35"
                        ]
                    },
                    {
                        "days": "5",
                        "times": [
                            "06:48 - 19:50",
                            "06:48 - 19:50",
                            "06:48 - 19:50"
                        ]
                    },
                    {
                        "days": "5",
                        "times": [
                            "08:44 - 17:57",
                            "08:44 - 17:57",
                            "08:44 - 17:57"
                        ]
                    }
                ]
            },
            {
                "name": "...",
                "description": "...",
                "type": "open",
                "hours": [
                    {
                        "days": "5",
                        "times": [
                            "07:42 - 12:57",
                            "07:42 - 12:57",
                            "07:42 - 12:57"
                        ]
                    },
                    {
                        "days": "5",
                        "times": [
                            "06:47 - 16:42",
                            "06:47 - 16:42",
                            "06:47 - 16:42"
                        ]
                    },
                    {
                        "days": "5",
                        "times": [
                            "06:57 - 10:56",
                            "06:57 - 10:56",
                            "06:57 - 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"
    },
    {
        "id": 17,
        "name": "Annetta Gleason",
        "address": {
            "street": "Sint-Denijslaan",
            "nr": "96",
            "zipcode": "9000",
            "city": "Gent",
            "country": "BE",
            "position": {
                "latitude": 1.54361,
                "longitude": 0.45645
            }
        },
        "allow_comments": false,
        "offers": [
            {
                "id": 15,
                "name": "Black Friday"
            },
            {
                "id": 10,
                "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": true,
        "delivery_use_intervals": true,
        "categories": [
            {
                "id": 18,
                "name": "Meda 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": {
                        "en": "Fugiat animi voluptas enim illo nihil quo sunt numquam impedit corrupti."
                    },
                    "description": {
                        "en": "Sit in saepe ex animi dolor impedit. Ipsa quidem dolorum praesentium officiis non repellendus. Aut aut alias dignissimos aliquid eos. Quo porro quia velit ut rem rerum nam dolorem."
                    },
                    "url": {
                        "en": "http://www.cremin.net/possimus-quis-aliquam-sunt-non-impedit-exercitationem-est"
                    }
                }
            },
            {
                "id": 13,
                "name": "Prof. Antonia Barton",
                "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": "Repellat omnis eum distinctio consequatur quas recusandae consectetur animi."
                    },
                    "description": {
                        "en": "Quos similique autem eos in voluptatem. Aut occaecati vel ex sunt sit. Dolores eveniet consectetur voluptatem minima est. Ratione illo eum non corporis."
                    },
                    "url": {
                        "en": "http://www.satterfield.com/sit-ab-temporibus-dolor-consequatur-nobis-qui-cum"
                    }
                }
            },
            {
                "id": 16,
                "name": "Wade Klein",
                "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": "Facere dolorem inventore et autem doloremque iste perspiciatis odit."
                    },
                    "description": {
                        "en": "Expedita officia nihil quas iste. Earum veniam repellat nam et. Ducimus et consequuntur est cupiditate. Voluptatem aut illum enim nihil qui dolorum est. Ex totam cum impedit sed quod."
                    },
                    "url": {
                        "en": "http://kuhn.com/sapiente-qui-dolores-facere-saepe-vero"
                    }
                }
            }
        ],
        "category_groups": [
            {
                "name": "...",
                "category_ids": [
                    14,
                    13,
                    19
                ]
            },
            {
                "name": "...",
                "category_ids": [
                    12,
                    15,
                    11
                ]
            },
            {
                "name": "...",
                "category_ids": [
                    17,
                    13,
                    19
                ]
            }
        ],
        "hours": [
            {
                "name": "...",
                "description": "...",
                "type": "open",
                "hours": [
                    {
                        "days": "5",
                        "times": [
                            "09:16 - 16:27",
                            "09:16 - 16:27",
                            "09:16 - 16:27"
                        ]
                    },
                    {
                        "days": "5",
                        "times": [
                            "08:59 - 17:44",
                            "08:59 - 17:44",
                            "08:59 - 17:44"
                        ]
                    },
                    {
                        "days": "5",
                        "times": [
                            "08:29 - 14:27",
                            "08:29 - 14:27",
                            "08:29 - 14:27"
                        ]
                    }
                ]
            },
            {
                "name": "...",
                "description": "...",
                "type": "open",
                "hours": [
                    {
                        "days": "5",
                        "times": [
                            "09:22 - 10:36",
                            "09:22 - 10:36",
                            "09:22 - 10:36"
                        ]
                    },
                    {
                        "days": "5",
                        "times": [
                            "06:31 - 11:11",
                            "06:31 - 11:11",
                            "06:31 - 11:11"
                        ]
                    },
                    {
                        "days": "5",
                        "times": [
                            "07:26 - 17:29",
                            "07:26 - 17:29",
                            "07:26 - 17:29"
                        ]
                    }
                ]
            },
            {
                "name": "...",
                "description": "...",
                "type": "open",
                "hours": [
                    {
                        "days": "5",
                        "times": [
                            "07:28 - 17:41",
                            "07:28 - 17:41",
                            "07:28 - 17:41"
                        ]
                    },
                    {
                        "days": "5",
                        "times": [
                            "06:38 - 14:35",
                            "06:38 - 14:35",
                            "06:38 - 14:35"
                        ]
                    },
                    {
                        "days": "5",
                        "times": [
                            "07:45 - 19:25",
                            "07:45 - 19:25",
                            "07:45 - 19:25"
                        ]
                    }
                ]
            }
        ],
        "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.5.0 stable