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=18&sortBy=distance HTTP/1.1
Host: api.bakeronline.be
X-VERSION: 1.1.0
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.
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: 24992

[
    {
        "id": 14,
        "name": "Fabiola VonRueden",
        "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": 19,
                        "percentage": 19,
                        "minimum": 14
                    },
                    {
                        "type": "product",
                        "item_id": 10,
                        "percentage": 12,
                        "minimum": 12
                    },
                    {
                        "type": "product",
                        "item_id": 10,
                        "percentage": 13,
                        "minimum": 11
                    }
                ]
            },
            {
                "id": 10,
                "name": "...",
                "items": [
                    {
                        "type": "product",
                        "item_id": 18,
                        "percentage": 14,
                        "minimum": 10
                    },
                    {
                        "type": "product",
                        "item_id": 15,
                        "percentage": 16,
                        "minimum": 14
                    },
                    {
                        "type": "product",
                        "item_id": 15,
                        "percentage": 11,
                        "minimum": 19
                    }
                ]
            },
            {
                "id": 17,
                "name": "...",
                "items": [
                    {
                        "type": "product",
                        "item_id": 10,
                        "percentage": 14,
                        "minimum": 16
                    },
                    {
                        "type": "product",
                        "item_id": 16,
                        "percentage": 17,
                        "minimum": 15
                    },
                    {
                        "type": "product",
                        "item_id": 14,
                        "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": false,
        "allow_orders": false,
        "delivery_use_intervals": false,
        "categories": [
            {
                "id": 17,
                "name": "Mrs. Hortense Schuppe",
                "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": "Aut adipisci incidunt et suscipit corrupti quia."
                    },
                    "description": {
                        "en": "Dolore qui ut voluptates corporis ut voluptatibus impedit. Vitae qui eum autem quia rerum asperiores quo. Ipsum necessitatibus quisquam minima debitis soluta."
                    },
                    "url": {
                        "en": "http://www.strosin.com/"
                    }
                }
            },
            {
                "id": 10,
                "name": "Adolphus Bednar",
                "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": "Dolores ut similique eius aut animi quod repellat facere tenetur facere."
                    },
                    "description": {
                        "en": "Omnis eveniet atque quo quod quia. Nihil facere laudantium voluptatem omnis. Enim rerum enim occaecati ea doloribus. Quia maxime magnam dolor quo voluptatem dolor et ad."
                    },
                    "url": {
                        "en": "http://becker.com/ratione-voluptate-assumenda-et-nisi-praesentium-ipsum-veritatis-alias.html"
                    }
                }
            },
            {
                "id": 19,
                "name": "Adan Welch",
                "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": "Animi vitae autem minus aut et aut assumenda."
                    },
                    "description": {
                        "en": "Excepturi ducimus quasi facilis et omnis impedit accusamus. Velit praesentium nihil rem sequi doloribus quibusdam iure occaecati. Et quia architecto et."
                    },
                    "url": {
                        "en": "http://balistreri.com/"
                    }
                }
            }
        ],
        "category_groups": [
            {
                "name": "...",
                "category_ids": [
                    19,
                    19,
                    18
                ]
            },
            {
                "name": "...",
                "category_ids": [
                    12,
                    19,
                    13
                ]
            },
            {
                "name": "...",
                "category_ids": [
                    12,
                    10,
                    10
                ]
            }
        ],
        "currency": "EUR"
    },
    {
        "id": 11,
        "name": "Mazie Okuneva",
        "address": {
            "street": "Sint-Denijslaan",
            "nr": "96",
            "zipcode": "9000",
            "city": "Gent",
            "country": "BE",
            "position": {
                "latitude": 1.54361,
                "longitude": 0.45645
            }
        },
        "offers": [
            {
                "id": 12,
                "name": "...",
                "items": [
                    {
                        "type": "product",
                        "item_id": 10,
                        "percentage": 19,
                        "minimum": 16
                    },
                    {
                        "type": "product",
                        "item_id": 17,
                        "percentage": 13,
                        "minimum": 16
                    },
                    {
                        "type": "product",
                        "item_id": 14,
                        "percentage": 14,
                        "minimum": 14
                    }
                ]
            },
            {
                "id": 19,
                "name": "...",
                "items": [
                    {
                        "type": "product",
                        "item_id": 10,
                        "percentage": 19,
                        "minimum": 19
                    },
                    {
                        "type": "product",
                        "item_id": 15,
                        "percentage": 15,
                        "minimum": 11
                    },
                    {
                        "type": "product",
                        "item_id": 17,
                        "percentage": 17,
                        "minimum": 14
                    }
                ]
            },
            {
                "id": 14,
                "name": "...",
                "items": [
                    {
                        "type": "product",
                        "item_id": 13,
                        "percentage": 16,
                        "minimum": 11
                    },
                    {
                        "type": "product",
                        "item_id": 11,
                        "percentage": 19,
                        "minimum": 10
                    },
                    {
                        "type": "product",
                        "item_id": 11,
                        "percentage": 12,
                        "minimum": 12
                    }
                ]
            }
        ],
        "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": "Mr. Zander Prosacco PhD",
                "banner": {
                    "resolutions": [
                        {
                            "src": "https://example.com",
                            "width": 600,
                            "height": 350
                        },
                        {
                            "src": "https://example.com",
                            "width": 600,
                            "height": 350
                        },
                        {
                            "src": "https://example.com",
                            "width": 600,
                            "height": 350
                        }
                    ],
                    "white_background": false
                },
                "seo": {
                    "title": {
                        "en": "Et minima libero distinctio quis tempore necessitatibus sapiente atque et voluptatem."
                    },
                    "description": {
                        "en": "Sint veritatis porro nobis beatae et quis ea reprehenderit. Tempora libero tempora nisi quas quo maxime dolorem. Ea eaque neque delectus soluta quasi cumque non."
                    },
                    "url": {
                        "en": "http://carroll.com/quasi-dolor-quo-commodi-nobis-incidunt"
                    }
                }
            },
            {
                "id": 16,
                "name": "Ima Ortiz",
                "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": "Aspernatur illum aperiam qui esse ut voluptatibus nihil."
                    },
                    "description": {
                        "en": "Quibusdam qui nostrum sapiente et consequatur. Et amet illo debitis corrupti repellat. Voluptas quia quo facere. Et neque est ratione commodi sit dolor. Sed et placeat facilis consequuntur."
                    },
                    "url": {
                        "en": "http://bode.com/omnis-ex-omnis-veritatis"
                    }
                }
            },
            {
                "id": 17,
                "name": "Dr. Zora Crooks 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": "Molestiae reprehenderit et nihil temporibus qui fugit repellendus eos in."
                    },
                    "description": {
                        "en": "Et eos nostrum officia ea. Quia quasi delectus repellat. Quis officia fuga enim."
                    },
                    "url": {
                        "en": "http://www.jakubowski.com/hic-laborum-odit-dicta-deserunt.html"
                    }
                }
            }
        ],
        "category_groups": [
            {
                "name": "...",
                "category_ids": [
                    14,
                    18,
                    17
                ]
            },
            {
                "name": "...",
                "category_ids": [
                    15,
                    17,
                    12
                ]
            },
            {
                "name": "...",
                "category_ids": [
                    13,
                    16,
                    17
                ]
            }
        ],
        "currency": "EUR"
    },
    {
        "id": 13,
        "name": "Neha Hyatt",
        "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": 19,
                        "percentage": 11,
                        "minimum": 18
                    },
                    {
                        "type": "product",
                        "item_id": 19,
                        "percentage": 19,
                        "minimum": 10
                    },
                    {
                        "type": "product",
                        "item_id": 11,
                        "percentage": 14,
                        "minimum": 11
                    }
                ]
            },
            {
                "id": 10,
                "name": "...",
                "items": [
                    {
                        "type": "product",
                        "item_id": 11,
                        "percentage": 18,
                        "minimum": 10
                    },
                    {
                        "type": "product",
                        "item_id": 16,
                        "percentage": 13,
                        "minimum": 10
                    },
                    {
                        "type": "product",
                        "item_id": 13,
                        "percentage": 13,
                        "minimum": 13
                    }
                ]
            },
            {
                "id": 13,
                "name": "...",
                "items": [
                    {
                        "type": "product",
                        "item_id": 12,
                        "percentage": 12,
                        "minimum": 16
                    },
                    {
                        "type": "product",
                        "item_id": 15,
                        "percentage": 10,
                        "minimum": 16
                    },
                    {
                        "type": "product",
                        "item_id": 19,
                        "percentage": 16,
                        "minimum": 12
                    }
                ]
            }
        ],
        "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": false,
        "categories": [
            {
                "id": 17,
                "name": "Darlene Schuster DDS",
                "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": "Molestias minima quas amet et hic est rerum tenetur libero eaque."
                    },
                    "description": {
                        "en": "Doloremque accusamus nihil ut a repellendus iusto. Vero reiciendis amet a illum. Sint id nihil alias quo voluptatibus blanditiis est consequatur. Tempore aut debitis voluptas quo unde rerum."
                    },
                    "url": {
                        "en": "http://www.yundt.com/veniam-eos-rerum-omnis-magni-ipsam"
                    }
                }
            },
            {
                "id": 14,
                "name": "Luisa Medhurst 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": "Tempora voluptatem et a dolorem voluptate."
                    },
                    "description": {
                        "en": "Voluptas optio excepturi expedita reiciendis. Culpa expedita et laudantium consequatur nobis enim et. Tenetur voluptas tempore blanditiis et. Voluptas aut nam ducimus tempora cumque saepe qui."
                    },
                    "url": {
                        "en": "http://tromp.net/ducimus-aut-porro-officiis-numquam-voluptates-eveniet"
                    }
                }
            },
            {
                "id": 16,
                "name": "Margaretta Sauer",
                "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": "Aut est et sed beatae sed quis."
                    },
                    "description": {
                        "en": "Eaque et vitae consectetur harum doloremque consequatur veritatis. Facilis et aut voluptate enim eum nostrum blanditiis. Aperiam nemo sunt quo illo et sit eos."
                    },
                    "url": {
                        "en": "http://lebsack.biz/corporis-esse-magnam-eum-dolores-ab-qui"
                    }
                }
            }
        ],
        "category_groups": [
            {
                "name": "...",
                "category_ids": [
                    18,
                    12,
                    19
                ]
            },
            {
                "name": "...",
                "category_ids": [
                    17,
                    19,
                    16
                ]
            },
            {
                "name": "...",
                "category_ids": [
                    16,
                    16,
                    14
                ]
            }
        ],
        "currency": "EUR"
    }
]
Version update available Please adjust your integration to the latest stable version (1.9.0)
1.1.0 stable