Search shops

GET /shops/search

Request

Query string (URL)

Append the querystring with following properties to the URL.

A dictionary with fields

Field Type Description
query String Optional. A String value
coordinates Coordinates Optional. Coordinates of a place in the world
distance Int Optional. An integer value
sortBy String Optional. String. Should be equal to 'distance'

Example request 1

GET /shops/search?query=...&coordinates%5Blatitude%5D=1%2C54361&coordinates%5Blongitude%5D=0%2C45645&distance=16&sortBy=distance HTTP/1.1
Host: api.bakeronline.be
X-VERSION: 0.2.2
Accept-Language: en-US,en;q=0.5

Response

Array of Shop.detailed: [Shop.detailed]

Shop.detailed

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.

Example response 1

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

[
    {
        "id": 10,
        "name": "Prof. Imani Upton III",
        "address": {
            "street": "Sint-Denijslaan",
            "nr": "96",
            "zipcode": "9000",
            "city": "Gent",
            "country": "BE",
            "position": {
                "latitude": 1.54361,
                "longitude": 0.45645
            }
        },
        "offers": [
            {
                "id": 16,
                "name": "...",
                "items": [
                    {
                        "type": "product",
                        "item_id": 11,
                        "percentage": 13,
                        "minimum": 11
                    },
                    {
                        "type": "product",
                        "item_id": 19,
                        "percentage": 17,
                        "minimum": 19
                    },
                    {
                        "type": "product",
                        "item_id": 16,
                        "percentage": 11,
                        "minimum": 11
                    }
                ]
            },
            {
                "id": 13,
                "name": "...",
                "items": [
                    {
                        "type": "product",
                        "item_id": 10,
                        "percentage": 12,
                        "minimum": 10
                    },
                    {
                        "type": "product",
                        "item_id": 11,
                        "percentage": 19,
                        "minimum": 14
                    },
                    {
                        "type": "product",
                        "item_id": 12,
                        "percentage": 16,
                        "minimum": 17
                    }
                ]
            },
            {
                "id": 16,
                "name": "...",
                "items": [
                    {
                        "type": "product",
                        "item_id": 10,
                        "percentage": 18,
                        "minimum": 19
                    },
                    {
                        "type": "product",
                        "item_id": 17,
                        "percentage": 16,
                        "minimum": 18
                    },
                    {
                        "type": "product",
                        "item_id": 14,
                        "percentage": 14,
                        "minimum": 13
                    }
                ]
            }
        ],
        "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": 13,
                "name": "Dr. Nicholaus Farrell",
                "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": "Eius optio aliquam est in sed asperiores omnis qui."
                    },
                    "description": {
                        "en": "Sequi qui earum sequi et id error aut. Aut mollitia vel cumque deleniti. Dignissimos eligendi laudantium aut aut. Sint aut ut blanditiis et."
                    },
                    "url": {
                        "en": "https://huels.com/repellendus-ut-repellat-mollitia.html"
                    }
                }
            },
            {
                "id": 19,
                "name": "Betty Carroll",
                "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": "Asperiores soluta consequuntur aliquid at nihil deserunt."
                    },
                    "description": {
                        "en": "Vitae incidunt provident dolorem suscipit. Ullam excepturi porro vitae accusamus dolores rem. Quo rem nihil nam quidem."
                    },
                    "url": {
                        "en": "http://mcdermott.com/aut-temporibus-dicta-ut-numquam"
                    }
                }
            },
            {
                "id": 16,
                "name": "Ms. Aditya Collier",
                "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": "Voluptatem libero beatae qui ducimus nihil explicabo repudiandae omnis."
                    },
                    "description": {
                        "en": "Nobis velit qui vitae qui rerum sunt. Aperiam id fuga provident suscipit voluptates quaerat labore. Nesciunt ea saepe aut ducimus ut quisquam voluptas qui."
                    },
                    "url": {
                        "en": "https://yundt.com/porro-et-natus-eaque-rerum-aut.html"
                    }
                }
            }
        ],
        "category_groups": [
            {
                "name": "...",
                "category_ids": [
                    13,
                    18,
                    12
                ]
            },
            {
                "name": "...",
                "category_ids": [
                    19,
                    11,
                    12
                ]
            },
            {
                "name": "...",
                "category_ids": [
                    16,
                    16,
                    13
                ]
            }
        ]
    },
    {
        "id": 13,
        "name": "Ms. Kaya Huel",
        "address": {
            "street": "Sint-Denijslaan",
            "nr": "96",
            "zipcode": "9000",
            "city": "Gent",
            "country": "BE",
            "position": {
                "latitude": 1.54361,
                "longitude": 0.45645
            }
        },
        "offers": [
            {
                "id": 15,
                "name": "...",
                "items": [
                    {
                        "type": "product",
                        "item_id": 16,
                        "percentage": 19,
                        "minimum": 14
                    },
                    {
                        "type": "product",
                        "item_id": 11,
                        "percentage": 19,
                        "minimum": 18
                    },
                    {
                        "type": "product",
                        "item_id": 14,
                        "percentage": 14,
                        "minimum": 13
                    }
                ]
            },
            {
                "id": 12,
                "name": "...",
                "items": [
                    {
                        "type": "product",
                        "item_id": 17,
                        "percentage": 13,
                        "minimum": 16
                    },
                    {
                        "type": "product",
                        "item_id": 11,
                        "percentage": 19,
                        "minimum": 11
                    },
                    {
                        "type": "product",
                        "item_id": 14,
                        "percentage": 18,
                        "minimum": 16
                    }
                ]
            },
            {
                "id": 18,
                "name": "...",
                "items": [
                    {
                        "type": "product",
                        "item_id": 18,
                        "percentage": 18,
                        "minimum": 19
                    },
                    {
                        "type": "product",
                        "item_id": 19,
                        "percentage": 19,
                        "minimum": 16
                    },
                    {
                        "type": "product",
                        "item_id": 16,
                        "percentage": 15,
                        "minimum": 10
                    }
                ]
            }
        ],
        "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_comments": false,
        "allow_orders": true,
        "delivery_use_intervals": false,
        "categories": [
            {
                "id": 13,
                "name": "Juston Carter",
                "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": "Et omnis in ad dolor facilis eos aliquam et delectus eos."
                    },
                    "description": {
                        "en": "Officia quia accusantium et aut quo harum et. Voluptatibus culpa velit et recusandae id alias ratione. Aliquam esse similique tempore ut."
                    },
                    "url": {
                        "en": "http://www.braun.com/voluptates-ut-autem-sint-omnis-alias-et.html"
                    }
                }
            },
            {
                "id": 11,
                "name": "Ebba Franecki",
                "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": "Praesentium recusandae magnam voluptate sint deleniti laudantium quo perspiciatis."
                    },
                    "description": {
                        "en": "Excepturi quia officia eum et at. Rem eligendi ipsum est voluptas fugit quaerat. Perspiciatis autem qui vel ducimus et esse eligendi."
                    },
                    "url": {
                        "en": "http://www.kunde.com/cumque-blanditiis-delectus-impedit"
                    }
                }
            },
            {
                "id": 16,
                "name": "Kurt Rowe",
                "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": "Veritatis ut debitis minus in itaque similique et qui id."
                    },
                    "description": {
                        "en": "Rerum ea possimus autem voluptatem. Neque earum quam sapiente eum aliquam itaque distinctio. Natus laudantium ratione et ut quod molestias iure enim."
                    },
                    "url": {
                        "en": "http://kozey.com/"
                    }
                }
            }
        ],
        "category_groups": [
            {
                "name": "...",
                "category_ids": [
                    11,
                    16,
                    19
                ]
            },
            {
                "name": "...",
                "category_ids": [
                    15,
                    12,
                    12
                ]
            },
            {
                "name": "...",
                "category_ids": [
                    19,
                    11,
                    12
                ]
            }
        ]
    },
    {
        "id": 19,
        "name": "Selena Hessel V",
        "address": {
            "street": "Sint-Denijslaan",
            "nr": "96",
            "zipcode": "9000",
            "city": "Gent",
            "country": "BE",
            "position": {
                "latitude": 1.54361,
                "longitude": 0.45645
            }
        },
        "offers": [
            {
                "id": 11,
                "name": "...",
                "items": [
                    {
                        "type": "product",
                        "item_id": 11,
                        "percentage": 17,
                        "minimum": 13
                    },
                    {
                        "type": "product",
                        "item_id": 12,
                        "percentage": 19,
                        "minimum": 15
                    },
                    {
                        "type": "product",
                        "item_id": 18,
                        "percentage": 10,
                        "minimum": 10
                    }
                ]
            },
            {
                "id": 19,
                "name": "...",
                "items": [
                    {
                        "type": "product",
                        "item_id": 14,
                        "percentage": 10,
                        "minimum": 10
                    },
                    {
                        "type": "product",
                        "item_id": 16,
                        "percentage": 19,
                        "minimum": 13
                    },
                    {
                        "type": "product",
                        "item_id": 17,
                        "percentage": 18,
                        "minimum": 10
                    }
                ]
            },
            {
                "id": 10,
                "name": "...",
                "items": [
                    {
                        "type": "product",
                        "item_id": 17,
                        "percentage": 11,
                        "minimum": 17
                    },
                    {
                        "type": "product",
                        "item_id": 12,
                        "percentage": 17,
                        "minimum": 14
                    },
                    {
                        "type": "product",
                        "item_id": 16,
                        "percentage": 13,
                        "minimum": 13
                    }
                ]
            }
        ],
        "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_comments": true,
        "allow_orders": true,
        "delivery_use_intervals": true,
        "categories": [
            {
                "id": 10,
                "name": "Reinhold Sawayn",
                "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 necessitatibus eum quia aliquam consequatur adipisci aliquid et corporis."
                    },
                    "description": {
                        "en": "Rerum natus at saepe corrupti sit molestiae. Accusantium aut velit voluptates qui rerum. Non rem animi dicta nemo. Similique illo dolorem ipsam placeat est adipisci velit."
                    },
                    "url": {
                        "en": "https://www.mcglynn.com/repellat-similique-dicta-distinctio-voluptates-in"
                    }
                }
            },
            {
                "id": 13,
                "name": "Era Jaskolski",
                "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": "Incidunt qui architecto est est aut sint quam eum velit."
                    },
                    "description": {
                        "en": "Eligendi dolores vero magni quos praesentium non sit. Aspernatur molestias totam id quaerat est aliquid cumque ducimus. Repellat eligendi sit laboriosam qui est dolorum."
                    },
                    "url": {
                        "en": "http://www.ortiz.com/velit-accusantium-quia-soluta-magni"
                    }
                }
            },
            {
                "id": 16,
                "name": "Omer Ruecker",
                "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": "Ratione quasi qui magnam velit est consequatur."
                    },
                    "description": {
                        "en": "Velit at nemo eum sit. Provident error quae amet deleniti vero. Similique consequatur voluptatem dicta sapiente aut qui non doloribus."
                    },
                    "url": {
                        "en": "http://www.olson.com/mollitia-incidunt-ipsum-est-est-consequatur"
                    }
                }
            }
        ],
        "category_groups": [
            {
                "name": "...",
                "category_ids": [
                    18,
                    11,
                    18
                ]
            },
            {
                "name": "...",
                "category_ids": [
                    19,
                    18,
                    15
                ]
            },
            {
                "name": "...",
                "category_ids": [
                    15,
                    10,
                    15
                ]
            }
        ]
    }
]
Version update available Please adjust your integration to the latest stable version (1.9.0)
0.2.2 stable