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=13&sortBy=distance HTTP/1.1
Host: api.bakeronline.be
X-VERSION: 1.0.1
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: 25002

[
    {
        "id": 10,
        "name": "Mrs. Dawn Crist I",
        "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": 13,
                        "percentage": 19,
                        "minimum": 14
                    },
                    {
                        "type": "product",
                        "item_id": 16,
                        "percentage": 11,
                        "minimum": 18
                    },
                    {
                        "type": "product",
                        "item_id": 16,
                        "percentage": 15,
                        "minimum": 12
                    }
                ]
            },
            {
                "id": 19,
                "name": "...",
                "items": [
                    {
                        "type": "product",
                        "item_id": 13,
                        "percentage": 10,
                        "minimum": 17
                    },
                    {
                        "type": "product",
                        "item_id": 17,
                        "percentage": 10,
                        "minimum": 12
                    },
                    {
                        "type": "product",
                        "item_id": 13,
                        "percentage": 16,
                        "minimum": 13
                    }
                ]
            },
            {
                "id": 15,
                "name": "...",
                "items": [
                    {
                        "type": "product",
                        "item_id": 19,
                        "percentage": 14,
                        "minimum": 17
                    },
                    {
                        "type": "product",
                        "item_id": 12,
                        "percentage": 11,
                        "minimum": 19
                    },
                    {
                        "type": "product",
                        "item_id": 13,
                        "percentage": 15,
                        "minimum": 17
                    }
                ]
            }
        ],
        "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": 14,
                "name": "Shaun 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": false
                },
                "seo": {
                    "title": {
                        "en": "Consectetur aspernatur est atque harum ullam et accusantium debitis non et."
                    },
                    "description": {
                        "en": "Sint ex aut nesciunt sint qui ducimus. Similique quidem nisi quas nesciunt eaque. Porro nihil voluptatem magnam officiis explicabo quo fuga. Laborum soluta numquam porro facilis qui."
                    },
                    "url": {
                        "en": "https://www.bechtelar.com/voluptatum-quod-id-velit-iusto-deleniti-omnis-culpa-labore"
                    }
                }
            },
            {
                "id": 15,
                "name": "Arielle Feeney",
                "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": "Rerum quo velit culpa aliquid tenetur quia distinctio eos."
                    },
                    "description": {
                        "en": "Rerum ut facilis nulla. Vel id labore quam eum ab libero. Et reiciendis sit nostrum necessitatibus ut."
                    },
                    "url": {
                        "en": "http://www.donnelly.com/aliquam-quia-beatae-rerum-eligendi-aut-nesciunt"
                    }
                }
            },
            {
                "id": 18,
                "name": "Dr. Jayme Goodwin V",
                "banner": {
                    "resolutions": [
                        {
                            "src": "https://example.com",
                            "width": 600,
                            "height": 350
                        },
                        {
                            "src": "https://example.com",
                            "width": 600,
                            "height": 350
                        },
                        {
                            "src": "https://example.com",
                            "width": 600,
                            "height": 350
                        }
                    ],
                    "white_background": false
                },
                "seo": {
                    "title": {
                        "en": "Doloribus quasi in facere maiores doloremque sapiente laborum sapiente."
                    },
                    "description": {
                        "en": "In cum eos odio in suscipit ullam facilis. Voluptatem vitae architecto voluptas qui ut non. Et fugit expedita possimus excepturi."
                    },
                    "url": {
                        "en": "http://www.wunsch.biz/debitis-nesciunt-rerum-consequatur-rerum-velit.html"
                    }
                }
            }
        ],
        "category_groups": [
            {
                "name": "...",
                "category_ids": [
                    16,
                    18,
                    10
                ]
            },
            {
                "name": "...",
                "category_ids": [
                    11,
                    13,
                    18
                ]
            },
            {
                "name": "...",
                "category_ids": [
                    16,
                    13,
                    13
                ]
            }
        ],
        "currency": "EUR"
    },
    {
        "id": 17,
        "name": "Tomas Schimmel DDS",
        "address": {
            "street": "Sint-Denijslaan",
            "nr": "96",
            "zipcode": "9000",
            "city": "Gent",
            "country": "BE",
            "position": {
                "latitude": 1.54361,
                "longitude": 0.45645
            }
        },
        "offers": [
            {
                "id": 19,
                "name": "...",
                "items": [
                    {
                        "type": "product",
                        "item_id": 15,
                        "percentage": 16,
                        "minimum": 18
                    },
                    {
                        "type": "product",
                        "item_id": 15,
                        "percentage": 11,
                        "minimum": 15
                    },
                    {
                        "type": "product",
                        "item_id": 19,
                        "percentage": 14,
                        "minimum": 13
                    }
                ]
            },
            {
                "id": 14,
                "name": "...",
                "items": [
                    {
                        "type": "product",
                        "item_id": 16,
                        "percentage": 10,
                        "minimum": 11
                    },
                    {
                        "type": "product",
                        "item_id": 12,
                        "percentage": 16,
                        "minimum": 14
                    },
                    {
                        "type": "product",
                        "item_id": 13,
                        "percentage": 16,
                        "minimum": 14
                    }
                ]
            },
            {
                "id": 19,
                "name": "...",
                "items": [
                    {
                        "type": "product",
                        "item_id": 19,
                        "percentage": 19,
                        "minimum": 17
                    },
                    {
                        "type": "product",
                        "item_id": 19,
                        "percentage": 16,
                        "minimum": 15
                    },
                    {
                        "type": "product",
                        "item_id": 18,
                        "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": true
            }
        },
        "allow_comments": true,
        "allow_orders": true,
        "delivery_use_intervals": false,
        "categories": [
            {
                "id": 13,
                "name": "Frederik Franecki 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": "Omnis perspiciatis et porro repudiandae placeat qui."
                    },
                    "description": {
                        "en": "Quibusdam nesciunt harum similique eos. Ea omnis quia exercitationem. Vero explicabo sit odio totam qui cum eos."
                    },
                    "url": {
                        "en": "http://ledner.com/dignissimos-iure-eum-voluptatem-omnis-ab-velit"
                    }
                }
            },
            {
                "id": 11,
                "name": "Dr. Arnulfo Halvorson",
                "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": "Sint consequatur at illo doloribus aut est delectus sint omnis."
                    },
                    "description": {
                        "en": "Sit voluptatem voluptatem fugiat aut at labore. Sapiente hic voluptas iure incidunt ipsam. Veritatis optio iste voluptatem minus molestiae officiis quod. Quo aliquid sequi provident aut dolorum."
                    },
                    "url": {
                        "en": "http://ankunding.net/tempora-maxime-dolor-distinctio-nihil-harum"
                    }
                }
            },
            {
                "id": 16,
                "name": "Humberto Hirthe",
                "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": "Tempora eum ea fuga deserunt velit expedita."
                    },
                    "description": {
                        "en": "Sed laborum deleniti aut adipisci at qui. Sed magni reprehenderit laborum iusto."
                    },
                    "url": {
                        "en": "https://www.koch.com/dolorum-asperiores-quo-illum-esse-blanditiis"
                    }
                }
            }
        ],
        "category_groups": [
            {
                "name": "...",
                "category_ids": [
                    18,
                    15,
                    18
                ]
            },
            {
                "name": "...",
                "category_ids": [
                    18,
                    16,
                    13
                ]
            },
            {
                "name": "...",
                "category_ids": [
                    14,
                    18,
                    10
                ]
            }
        ],
        "currency": "EUR"
    },
    {
        "id": 12,
        "name": "Mr. Travis Satterfield II",
        "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": 13,
                        "percentage": 11,
                        "minimum": 11
                    },
                    {
                        "type": "product",
                        "item_id": 17,
                        "percentage": 10,
                        "minimum": 15
                    },
                    {
                        "type": "product",
                        "item_id": 14,
                        "percentage": 18,
                        "minimum": 14
                    }
                ]
            },
            {
                "id": 14,
                "name": "...",
                "items": [
                    {
                        "type": "product",
                        "item_id": 15,
                        "percentage": 11,
                        "minimum": 14
                    },
                    {
                        "type": "product",
                        "item_id": 11,
                        "percentage": 18,
                        "minimum": 11
                    },
                    {
                        "type": "product",
                        "item_id": 11,
                        "percentage": 19,
                        "minimum": 11
                    }
                ]
            },
            {
                "id": 18,
                "name": "...",
                "items": [
                    {
                        "type": "product",
                        "item_id": 10,
                        "percentage": 15,
                        "minimum": 14
                    },
                    {
                        "type": "product",
                        "item_id": 11,
                        "percentage": 12,
                        "minimum": 15
                    },
                    {
                        "type": "product",
                        "item_id": 14,
                        "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": true
            }
        },
        "allow_comments": false,
        "allow_orders": true,
        "delivery_use_intervals": false,
        "categories": [
            {
                "id": 16,
                "name": "Zena Beatty",
                "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": "Omnis excepturi officiis rerum praesentium ut consequatur ea et."
                    },
                    "description": {
                        "en": "Dignissimos consequatur itaque facere. Sit et adipisci nemo sint velit sunt a. Fugiat minus qui consectetur ducimus vel."
                    },
                    "url": {
                        "en": "http://anderson.biz/soluta-quasi-voluptatem-porro-iusto-cupiditate-et.html"
                    }
                }
            },
            {
                "id": 11,
                "name": "Dr. Otto Orn",
                "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": "Sunt tempora ut tenetur quas quidem ratione cumque."
                    },
                    "description": {
                        "en": "Nihil voluptate recusandae laboriosam ea sed quia a. Voluptatibus assumenda nisi dolorem dolorem quasi ea sed. Aut suscipit debitis qui eius aut dicta aliquam."
                    },
                    "url": {
                        "en": "https://shields.com/sit-nulla-temporibus-nesciunt-qui-cupiditate-enim-maxime.html"
                    }
                }
            },
            {
                "id": 13,
                "name": "Prof. Flo Schroeder",
                "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 beatae aut id amet esse ipsum nostrum quaerat eveniet voluptatem."
                    },
                    "description": {
                        "en": "Laborum pariatur incidunt odit voluptatum enim et velit. Ut aut sapiente delectus voluptatum id. Aut earum eum incidunt et. Molestiae voluptatibus dignissimos assumenda delectus."
                    },
                    "url": {
                        "en": "http://www.gerhold.org/culpa-autem-vel-aliquid-eos-eius"
                    }
                }
            }
        ],
        "category_groups": [
            {
                "name": "...",
                "category_ids": [
                    11,
                    13,
                    19
                ]
            },
            {
                "name": "...",
                "category_ids": [
                    17,
                    13,
                    14
                ]
            },
            {
                "name": "...",
                "category_ids": [
                    14,
                    18,
                    14
                ]
            }
        ],
        "currency": "EUR"
    }
]
Version update available Please adjust your integration to the latest stable version (1.9.0)
1.0.1 stable