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: 1.2.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: 24861

[
    {
        "id": 13,
        "name": "Piper Ferry",
        "address": {
            "street": "Sint-Denijslaan",
            "nr": "96",
            "zipcode": "9000",
            "city": "Gent",
            "country": "BE",
            "position": {
                "latitude": 1.54361,
                "longitude": 0.45645
            }
        },
        "offers": [
            {
                "id": 18,
                "name": "...",
                "items": [
                    {
                        "type": "product",
                        "item_id": 12,
                        "percentage": 11,
                        "minimum": 11
                    },
                    {
                        "type": "product",
                        "item_id": 13,
                        "percentage": 17,
                        "minimum": 15
                    },
                    {
                        "type": "product",
                        "item_id": 14,
                        "percentage": 14,
                        "minimum": 18
                    }
                ]
            },
            {
                "id": 14,
                "name": "...",
                "items": [
                    {
                        "type": "product",
                        "item_id": 13,
                        "percentage": 18,
                        "minimum": 12
                    },
                    {
                        "type": "product",
                        "item_id": 12,
                        "percentage": 17,
                        "minimum": 10
                    },
                    {
                        "type": "product",
                        "item_id": 14,
                        "percentage": 15,
                        "minimum": 16
                    }
                ]
            },
            {
                "id": 16,
                "name": "...",
                "items": [
                    {
                        "type": "product",
                        "item_id": 19,
                        "percentage": 15,
                        "minimum": 19
                    },
                    {
                        "type": "product",
                        "item_id": 13,
                        "percentage": 17,
                        "minimum": 11
                    },
                    {
                        "type": "product",
                        "item_id": 16,
                        "percentage": 11,
                        "minimum": 19
                    }
                ]
            }
        ],
        "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": true,
        "categories": [
            {
                "id": 19,
                "name": "Eugene Balistreri",
                "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": "Architecto error omnis qui qui delectus magnam error est ut ad."
                    },
                    "description": {
                        "en": "Ducimus eaque ut mollitia itaque aut qui aperiam. Porro porro veniam libero praesentium enim repellendus."
                    },
                    "url": {
                        "en": "http://www.willms.com/sunt-consequuntur-rerum-rem-corrupti-quod-tempora"
                    }
                }
            },
            {
                "id": 14,
                "name": "Stephany Bruen",
                "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": "Cupiditate sint consequatur fuga rerum accusamus voluptatum aut laudantium."
                    },
                    "description": {
                        "en": "Vero perspiciatis dignissimos laudantium esse atque. Distinctio rerum voluptatem dolores. Debitis quibusdam laborum dicta minima."
                    },
                    "url": {
                        "en": "http://www.dach.biz/molestiae-cupiditate-accusantium-praesentium-incidunt-non-commodi-fugit"
                    }
                }
            },
            {
                "id": 12,
                "name": "Miss Desiree Lockman MD",
                "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 aspernatur ratione ab facere doloremque nihil."
                    },
                    "description": {
                        "en": "Ratione quam autem cumque eaque enim. Ducimus atque distinctio omnis fugit deleniti suscipit quos. Similique distinctio quia sit laudantium voluptatem explicabo."
                    },
                    "url": {
                        "en": "http://www.towne.net/quod-ullam-quo-minus"
                    }
                }
            }
        ],
        "category_groups": [
            {
                "name": "...",
                "category_ids": [
                    14,
                    11,
                    17
                ]
            },
            {
                "name": "...",
                "category_ids": [
                    14,
                    15,
                    11
                ]
            },
            {
                "name": "...",
                "category_ids": [
                    17,
                    12,
                    13
                ]
            }
        ],
        "currency": "EUR"
    },
    {
        "id": 14,
        "name": "Roy Rogahn I",
        "address": {
            "street": "Sint-Denijslaan",
            "nr": "96",
            "zipcode": "9000",
            "city": "Gent",
            "country": "BE",
            "position": {
                "latitude": 1.54361,
                "longitude": 0.45645
            }
        },
        "offers": [
            {
                "id": 17,
                "name": "...",
                "items": [
                    {
                        "type": "product",
                        "item_id": 17,
                        "percentage": 17,
                        "minimum": 13
                    },
                    {
                        "type": "product",
                        "item_id": 13,
                        "percentage": 14,
                        "minimum": 17
                    },
                    {
                        "type": "product",
                        "item_id": 19,
                        "percentage": 13,
                        "minimum": 10
                    }
                ]
            },
            {
                "id": 13,
                "name": "...",
                "items": [
                    {
                        "type": "product",
                        "item_id": 16,
                        "percentage": 11,
                        "minimum": 12
                    },
                    {
                        "type": "product",
                        "item_id": 12,
                        "percentage": 16,
                        "minimum": 16
                    },
                    {
                        "type": "product",
                        "item_id": 15,
                        "percentage": 13,
                        "minimum": 10
                    }
                ]
            },
            {
                "id": 13,
                "name": "...",
                "items": [
                    {
                        "type": "product",
                        "item_id": 12,
                        "percentage": 19,
                        "minimum": 12
                    },
                    {
                        "type": "product",
                        "item_id": 15,
                        "percentage": 12,
                        "minimum": 13
                    },
                    {
                        "type": "product",
                        "item_id": 12,
                        "percentage": 18,
                        "minimum": 11
                    }
                ]
            }
        ],
        "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": true,
        "categories": [
            {
                "id": 11,
                "name": "Prof. Ben Hintz 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": false
                },
                "seo": {
                    "title": {
                        "en": "Ea quidem et tempora sequi maiores doloremque dignissimos quidem."
                    },
                    "description": {
                        "en": "Aliquid vitae nemo rerum molestias vel rerum ipsum. Occaecati perspiciatis repellendus eos iusto quia. Accusantium sint veniam nam aperiam. Sapiente incidunt eos est."
                    },
                    "url": {
                        "en": "http://www.predovic.biz/sapiente-dignissimos-quis-voluptate-totam-reiciendis-iste.html"
                    }
                }
            },
            {
                "id": 13,
                "name": "Odessa Anderson",
                "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": "Eveniet consequatur delectus et incidunt pariatur quasi."
                    },
                    "description": {
                        "en": "Culpa sint et est ex velit qui nihil est. Est sit est sunt saepe sint. Nulla voluptates est consectetur."
                    },
                    "url": {
                        "en": "http://www.pfannerstill.net/"
                    }
                }
            },
            {
                "id": 12,
                "name": "Gianni O'Hara",
                "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": "Dolore est earum minima ea est atque ipsam officia."
                    },
                    "description": {
                        "en": "Eveniet ratione et quisquam. Non omnis voluptate inventore beatae explicabo omnis et iure. Quidem eligendi et et quidem impedit at. Porro nobis ullam commodi temporibus excepturi fuga et."
                    },
                    "url": {
                        "en": "http://www.fadel.com/autem-numquam-ut-libero-a-ullam-aut-minima"
                    }
                }
            }
        ],
        "category_groups": [
            {
                "name": "...",
                "category_ids": [
                    16,
                    12,
                    18
                ]
            },
            {
                "name": "...",
                "category_ids": [
                    15,
                    19,
                    19
                ]
            },
            {
                "name": "...",
                "category_ids": [
                    17,
                    12,
                    17
                ]
            }
        ],
        "currency": "EUR"
    },
    {
        "id": 12,
        "name": "Scottie Hessel",
        "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": 14,
                        "percentage": 11,
                        "minimum": 14
                    },
                    {
                        "type": "product",
                        "item_id": 16,
                        "percentage": 18,
                        "minimum": 16
                    },
                    {
                        "type": "product",
                        "item_id": 10,
                        "percentage": 17,
                        "minimum": 18
                    }
                ]
            },
            {
                "id": 11,
                "name": "...",
                "items": [
                    {
                        "type": "product",
                        "item_id": 11,
                        "percentage": 16,
                        "minimum": 18
                    },
                    {
                        "type": "product",
                        "item_id": 15,
                        "percentage": 14,
                        "minimum": 11
                    },
                    {
                        "type": "product",
                        "item_id": 13,
                        "percentage": 15,
                        "minimum": 17
                    }
                ]
            },
            {
                "id": 17,
                "name": "...",
                "items": [
                    {
                        "type": "product",
                        "item_id": 11,
                        "percentage": 15,
                        "minimum": 15
                    },
                    {
                        "type": "product",
                        "item_id": 13,
                        "percentage": 10,
                        "minimum": 11
                    },
                    {
                        "type": "product",
                        "item_id": 14,
                        "percentage": 10,
                        "minimum": 15
                    }
                ]
            }
        ],
        "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": true,
        "allow_orders": true,
        "delivery_use_intervals": true,
        "categories": [
            {
                "id": 14,
                "name": "Rossie Upton",
                "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": "Qui inventore ex et sapiente consequatur eligendi ut praesentium."
                    },
                    "description": {
                        "en": "Nihil et dolore et animi numquam. Culpa laudantium vero voluptas molestiae impedit et autem."
                    },
                    "url": {
                        "en": "https://erdman.net/et-veritatis-unde-ipsam-mollitia-vel-molestiae.html"
                    }
                }
            },
            {
                "id": 18,
                "name": "Kathlyn Macejkovic",
                "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": "Minima ut qui blanditiis laudantium nam."
                    },
                    "description": {
                        "en": "Sed rerum perspiciatis placeat animi tenetur optio pariatur. Autem et quidem qui atque nam sed ex. Quasi quia maxime recusandae est qui modi autem. Voluptas inventore dolorem voluptatem eius."
                    },
                    "url": {
                        "en": "http://www.mclaughlin.com/sint-at-sit-dolores-voluptatem-et-id-totam"
                    }
                }
            },
            {
                "id": 12,
                "name": "Prof. Torey Deckow 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": "Quos repellendus inventore non at quod voluptatem."
                    },
                    "description": {
                        "en": "Mollitia consequuntur mollitia minima. Laboriosam aspernatur est rem omnis autem. Sed cumque harum et facere est porro velit quo."
                    },
                    "url": {
                        "en": "http://www.rau.com/"
                    }
                }
            }
        ],
        "category_groups": [
            {
                "name": "...",
                "category_ids": [
                    15,
                    12,
                    18
                ]
            },
            {
                "name": "...",
                "category_ids": [
                    16,
                    15,
                    10
                ]
            },
            {
                "name": "...",
                "category_ids": [
                    19,
                    18,
                    18
                ]
            }
        ],
        "currency": "EUR"
    }
]
Version update available Please adjust your integration to the latest stable version (1.9.0)
1.2.0 stable