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

Example response 1

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

[
    {
        "id": 14,
        "name": "Mr. Kelley Stroman",
        "address": {
            "street": "Sint-Denijslaan",
            "nr": "96",
            "zipcode": "9000",
            "city": "Gent",
            "country": "BE",
            "position": {
                "latitude": 1.54361,
                "longitude": 0.45645
            }
        },
        "offers": [
            {
                "id": 10,
                "name": "...",
                "items": [
                    {
                        "type": "product",
                        "item_id": 13,
                        "percentage": 16,
                        "minimum": 16
                    },
                    {
                        "type": "product",
                        "item_id": 11,
                        "percentage": 12,
                        "minimum": 19
                    },
                    {
                        "type": "product",
                        "item_id": 12,
                        "percentage": 19,
                        "minimum": 11
                    }
                ]
            },
            {
                "id": 14,
                "name": "...",
                "items": [
                    {
                        "type": "product",
                        "item_id": 18,
                        "percentage": 14,
                        "minimum": 16
                    },
                    {
                        "type": "product",
                        "item_id": 19,
                        "percentage": 10,
                        "minimum": 16
                    },
                    {
                        "type": "product",
                        "item_id": 11,
                        "percentage": 12,
                        "minimum": 10
                    }
                ]
            },
            {
                "id": 14,
                "name": "...",
                "items": [
                    {
                        "type": "product",
                        "item_id": 16,
                        "percentage": 15,
                        "minimum": 14
                    },
                    {
                        "type": "product",
                        "item_id": 18,
                        "percentage": 15,
                        "minimum": 16
                    },
                    {
                        "type": "product",
                        "item_id": 12,
                        "percentage": 17,
                        "minimum": 14
                    }
                ]
            }
        ],
        "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": 17,
                "name": "Aleen Zulauf",
                "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": "Mollitia quaerat dolorem tempore asperiores mollitia."
                    },
                    "description": {
                        "en": "Sit atque eveniet vero debitis sit unde expedita quisquam. Est deleniti cumque et exercitationem omnis deserunt. Animi harum dolorum maxime veritatis est dolores molestiae. Quia ut voluptates fugit."
                    },
                    "url": {
                        "en": "https://www.blanda.com/sed-quia-exercitationem-earum-perferendis"
                    }
                }
            },
            {
                "id": 18,
                "name": "Mr. Garrett Kunde 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": "Magnam ut dolore sit est reprehenderit."
                    },
                    "description": {
                        "en": "Molestias autem aperiam repudiandae optio autem. Amet sunt accusamus itaque ex. Et soluta autem maxime laudantium corporis."
                    },
                    "url": {
                        "en": "http://witting.biz/deserunt-quaerat-sint-exercitationem-inventore"
                    }
                }
            },
            {
                "id": 15,
                "name": "Mr. Tristian Simonis 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": "Exercitationem voluptas ipsum et qui qui eum."
                    },
                    "description": {
                        "en": "Sapiente nam dolores possimus id reprehenderit. Dolorem saepe rerum corporis delectus repellat ab similique. Dignissimos et illo deleniti. Est cupiditate ab dolor."
                    },
                    "url": {
                        "en": "https://www.larkin.org/architecto-quia-et-beatae-recusandae-non-sequi"
                    }
                }
            }
        ],
        "category_groups": [
            {
                "name": "...",
                "category_ids": [
                    19,
                    10,
                    10
                ]
            },
            {
                "name": "...",
                "category_ids": [
                    11,
                    18,
                    11
                ]
            },
            {
                "name": "...",
                "category_ids": [
                    19,
                    11,
                    16
                ]
            }
        ]
    },
    {
        "id": 11,
        "name": "Aliza Nicolas",
        "address": {
            "street": "Sint-Denijslaan",
            "nr": "96",
            "zipcode": "9000",
            "city": "Gent",
            "country": "BE",
            "position": {
                "latitude": 1.54361,
                "longitude": 0.45645
            }
        },
        "offers": [
            {
                "id": 13,
                "name": "...",
                "items": [
                    {
                        "type": "product",
                        "item_id": 19,
                        "percentage": 18,
                        "minimum": 14
                    },
                    {
                        "type": "product",
                        "item_id": 13,
                        "percentage": 13,
                        "minimum": 10
                    },
                    {
                        "type": "product",
                        "item_id": 17,
                        "percentage": 13,
                        "minimum": 14
                    }
                ]
            },
            {
                "id": 10,
                "name": "...",
                "items": [
                    {
                        "type": "product",
                        "item_id": 13,
                        "percentage": 14,
                        "minimum": 16
                    },
                    {
                        "type": "product",
                        "item_id": 17,
                        "percentage": 13,
                        "minimum": 18
                    },
                    {
                        "type": "product",
                        "item_id": 13,
                        "percentage": 13,
                        "minimum": 17
                    }
                ]
            },
            {
                "id": 16,
                "name": "...",
                "items": [
                    {
                        "type": "product",
                        "item_id": 11,
                        "percentage": 19,
                        "minimum": 14
                    },
                    {
                        "type": "product",
                        "item_id": 11,
                        "percentage": 16,
                        "minimum": 16
                    },
                    {
                        "type": "product",
                        "item_id": 19,
                        "percentage": 17,
                        "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": 10,
                "name": "Rosamond 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": "Voluptatem fugit architecto sed doloremque ut labore qui voluptates facilis inventore consequatur."
                    },
                    "description": {
                        "en": "Rerum aut sequi voluptas perferendis. Quos voluptatem ut earum temporibus praesentium. Est culpa consequuntur eveniet assumenda fugit veniam ea. Quidem quaerat sed voluptas."
                    },
                    "url": {
                        "en": "http://www.simonis.info/voluptate-hic-veritatis-sequi-optio-dolor-nemo"
                    }
                }
            },
            {
                "id": 17,
                "name": "Roscoe Baumbach",
                "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": "Ut nulla dolore aspernatur aut qui earum occaecati quo."
                    },
                    "description": {
                        "en": "Suscipit aut aut dolorum modi. Quis reiciendis culpa nisi enim. Doloribus facere modi veritatis."
                    },
                    "url": {
                        "en": "http://armstrong.com/aut-hic-ullam-sit-sed-repellendus-ipsum-impedit-suscipit"
                    }
                }
            },
            {
                "id": 19,
                "name": "Kara Stroman",
                "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 eaque enim ratione eius optio ut aut qui blanditiis ipsa."
                    },
                    "description": {
                        "en": "Quos reiciendis a non. Est labore reiciendis tenetur est."
                    },
                    "url": {
                        "en": "http://www.collier.com/aut-neque-consequuntur-nihil-accusantium-officia-et"
                    }
                }
            }
        ],
        "category_groups": [
            {
                "name": "...",
                "category_ids": [
                    17,
                    17,
                    13
                ]
            },
            {
                "name": "...",
                "category_ids": [
                    18,
                    19,
                    11
                ]
            },
            {
                "name": "...",
                "category_ids": [
                    14,
                    11,
                    18
                ]
            }
        ]
    },
    {
        "id": 14,
        "name": "Autumn Miller II",
        "address": {
            "street": "Sint-Denijslaan",
            "nr": "96",
            "zipcode": "9000",
            "city": "Gent",
            "country": "BE",
            "position": {
                "latitude": 1.54361,
                "longitude": 0.45645
            }
        },
        "offers": [
            {
                "id": 14,
                "name": "...",
                "items": [
                    {
                        "type": "product",
                        "item_id": 10,
                        "percentage": 12,
                        "minimum": 16
                    },
                    {
                        "type": "product",
                        "item_id": 18,
                        "percentage": 14,
                        "minimum": 11
                    },
                    {
                        "type": "product",
                        "item_id": 17,
                        "percentage": 14,
                        "minimum": 16
                    }
                ]
            },
            {
                "id": 13,
                "name": "...",
                "items": [
                    {
                        "type": "product",
                        "item_id": 18,
                        "percentage": 16,
                        "minimum": 15
                    },
                    {
                        "type": "product",
                        "item_id": 18,
                        "percentage": 16,
                        "minimum": 14
                    },
                    {
                        "type": "product",
                        "item_id": 12,
                        "percentage": 12,
                        "minimum": 18
                    }
                ]
            },
            {
                "id": 10,
                "name": "...",
                "items": [
                    {
                        "type": "product",
                        "item_id": 15,
                        "percentage": 19,
                        "minimum": 17
                    },
                    {
                        "type": "product",
                        "item_id": 11,
                        "percentage": 11,
                        "minimum": 12
                    },
                    {
                        "type": "product",
                        "item_id": 12,
                        "percentage": 16,
                        "minimum": 18
                    }
                ]
            }
        ],
        "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": 10,
                "name": "Melyssa Bode",
                "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": "Quas quia voluptatem necessitatibus quis sunt ipsum natus adipisci."
                    },
                    "description": {
                        "en": "Aut molestiae rerum accusamus sunt ut neque. Vitae nihil excepturi perferendis officiis at. Nulla quos nihil et odit ut."
                    },
                    "url": {
                        "en": "http://www.goyette.com/"
                    }
                }
            },
            {
                "id": 14,
                "name": "Margaretta Parker DVM",
                "banner": {
                    "resolutions": [
                        {
                            "src": "https://example.com",
                            "width": 600,
                            "height": 350
                        },
                        {
                            "src": "https://example.com",
                            "width": 600,
                            "height": 350
                        },
                        {
                            "src": "https://example.com",
                            "width": 600,
                            "height": 350
                        }
                    ],
                    "white_background": true
                },
                "seo": {
                    "title": {
                        "en": "Tempore rem non molestiae eum et ipsum ullam."
                    },
                    "description": {
                        "en": "Natus non asperiores temporibus harum sit. Optio sit dolores ipsum tenetur qui error nostrum et. Eos voluptates quia iure optio et nulla ut in. Quo ut qui quas reprehenderit fugit."
                    },
                    "url": {
                        "en": "http://rempel.com/"
                    }
                }
            },
            {
                "id": 16,
                "name": "Cynthia Schultz 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": "A et libero assumenda perferendis eligendi perferendis rerum."
                    },
                    "description": {
                        "en": "Consectetur rem sit ex doloribus. Illum qui nobis atque quas deserunt qui pariatur. Et magnam aspernatur distinctio et et."
                    },
                    "url": {
                        "en": "http://casper.net/provident-quae-aut-tenetur"
                    }
                }
            }
        ],
        "category_groups": [
            {
                "name": "...",
                "category_ids": [
                    17,
                    13,
                    16
                ]
            },
            {
                "name": "...",
                "category_ids": [
                    13,
                    14,
                    16
                ]
            },
            {
                "name": "...",
                "category_ids": [
                    19,
                    14,
                    12
                ]
            }
        ]
    }
]
Version update available Please adjust your integration to the latest stable version (1.9.0)
0.2.1 stable