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'
company_id Int Optional. Only return shops of this company ID

Example request 1

GET /shops/search?query=...&coordinates%5Blatitude%5D=1%2C54361&coordinates%5Blongitude%5D=0%2C45645&distance=19&sortBy=distance&company_id=14 HTTP/1.1
Host: api.bakeronline.be
X-VERSION: 1.4.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: 18769

[
    {
        "id": 10,
        "name": "Isaac Ritchie",
        "address": {
            "street": "Sint-Denijslaan",
            "nr": "96",
            "zipcode": "9000",
            "city": "Gent",
            "country": "BE",
            "position": {
                "latitude": 1.54361,
                "longitude": 0.45645
            }
        },
        "offers": [
            {
                "id": 14,
                "name": "Black Friday"
            },
            {
                "id": 12,
                "name": "Black Friday"
            },
            {
                "id": 15,
                "name": "Black Friday"
            }
        ],
        "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": false,
        "delivery_use_intervals": false,
        "categories": [
            {
                "id": 14,
                "name": "Dr. Oda Swift",
                "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": "Animi repudiandae quis delectus itaque qui voluptatem vero autem vel eveniet."
                    },
                    "description": {
                        "en": "Corrupti occaecati dicta perspiciatis. Sunt hic cupiditate minima consequatur numquam aut illum. Omnis vitae est eum harum deserunt et harum. Veniam voluptatem maiores maxime ea."
                    },
                    "url": {
                        "en": "http://www.jast.com/"
                    }
                }
            },
            {
                "id": 17,
                "name": "Hayley VonRueden 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": "Omnis ea ab temporibus aut optio itaque quibusdam sit culpa quis."
                    },
                    "description": {
                        "en": "Ex pariatur atque praesentium et recusandae sit. Quae nulla mollitia eveniet officia."
                    },
                    "url": {
                        "en": "http://blanda.com/"
                    }
                }
            },
            {
                "id": 15,
                "name": "Mrs. Sydnie Nikolaus 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": "Eos dolorem magni id id voluptatibus doloribus quibusdam nobis."
                    },
                    "description": {
                        "en": "A neque sit voluptas sunt. Aut officiis quia ea ut dolor ea. Ipsam error ducimus ducimus ut animi omnis."
                    },
                    "url": {
                        "en": "http://rau.com/"
                    }
                }
            }
        ],
        "category_groups": [
            {
                "name": "...",
                "category_ids": [
                    13,
                    19,
                    13
                ]
            },
            {
                "name": "...",
                "category_ids": [
                    17,
                    15,
                    19
                ]
            },
            {
                "name": "...",
                "category_ids": [
                    12,
                    17,
                    15
                ]
            }
        ],
        "currency": "EUR"
    },
    {
        "id": 14,
        "name": "Berry Toy",
        "address": {
            "street": "Sint-Denijslaan",
            "nr": "96",
            "zipcode": "9000",
            "city": "Gent",
            "country": "BE",
            "position": {
                "latitude": 1.54361,
                "longitude": 0.45645
            }
        },
        "offers": [
            {
                "id": 12,
                "name": "Black Friday"
            },
            {
                "id": 15,
                "name": "Black Friday"
            },
            {
                "id": 13,
                "name": "Black Friday"
            }
        ],
        "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": 11,
                "name": "Hilbert McLaughlin",
                "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": "Eos aut aut quia ut sunt incidunt officiis numquam."
                    },
                    "description": {
                        "en": "Provident fugit est magnam nobis fugit. Ratione sequi nesciunt nam et dolor minus minima. Non sapiente est laborum quis quis. Adipisci ut sequi ipsam doloremque deleniti voluptates."
                    },
                    "url": {
                        "en": "http://www.aufderhar.com/assumenda-dicta-doloribus-et-veritatis-voluptas-quaerat.html"
                    }
                }
            },
            {
                "id": 19,
                "name": "Mattie 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": false
                },
                "seo": {
                    "title": {
                        "en": "Aut illum ut numquam repellat cum a."
                    },
                    "description": {
                        "en": "Quae quia ipsam et eos ea soluta eius. Tenetur architecto consectetur numquam odio est. Ut id est magni et reiciendis."
                    },
                    "url": {
                        "en": "http://pfeffer.net/sapiente-nemo-possimus-libero-qui.html"
                    }
                }
            },
            {
                "id": 17,
                "name": "Prof. Kaelyn Erdman",
                "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": "Eum quas quo nostrum deleniti et illo dolorem sequi quasi."
                    },
                    "description": {
                        "en": "Ut fugit at esse et distinctio odit. Eligendi eum aut ex incidunt. Sunt eveniet possimus enim cum velit minima cupiditate."
                    },
                    "url": {
                        "en": "http://williamson.net/quo-alias-et-quaerat.html"
                    }
                }
            }
        ],
        "category_groups": [
            {
                "name": "...",
                "category_ids": [
                    15,
                    14,
                    11
                ]
            },
            {
                "name": "...",
                "category_ids": [
                    11,
                    18,
                    10
                ]
            },
            {
                "name": "...",
                "category_ids": [
                    17,
                    16,
                    13
                ]
            }
        ],
        "currency": "EUR"
    },
    {
        "id": 12,
        "name": "Dr. Kevon Luettgen PhD",
        "address": {
            "street": "Sint-Denijslaan",
            "nr": "96",
            "zipcode": "9000",
            "city": "Gent",
            "country": "BE",
            "position": {
                "latitude": 1.54361,
                "longitude": 0.45645
            }
        },
        "offers": [
            {
                "id": 11,
                "name": "Black Friday"
            },
            {
                "id": 15,
                "name": "Black Friday"
            },
            {
                "id": 14,
                "name": "Black Friday"
            }
        ],
        "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": 11,
                "name": "Charlie Boyer",
                "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 iusto dolorem ratione fuga accusantium maiores doloribus ipsum minus."
                    },
                    "description": {
                        "en": "Eos modi facere consectetur a nesciunt vel possimus. Doloribus aut voluptas quam ut autem hic provident. Molestias est mollitia totam asperiores. Quis eos eum maxime."
                    },
                    "url": {
                        "en": "http://kulas.org/accusamus-beatae-eum-optio-est"
                    }
                }
            },
            {
                "id": 13,
                "name": "Mr. Leland Miller",
                "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": "Aut explicabo et est iure quia voluptatem voluptas."
                    },
                    "description": {
                        "en": "Et in eum eum aut inventore inventore. Eum quia ut amet aut voluptatum alias qui. Voluptatum debitis aliquid voluptas sed."
                    },
                    "url": {
                        "en": "http://www.barrows.org/exercitationem-ut-sit-voluptas-non.html"
                    }
                }
            },
            {
                "id": 13,
                "name": "Libbie Pfannerstill",
                "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": "Labore officiis cupiditate expedita similique ex quo consequatur."
                    },
                    "description": {
                        "en": "Odio sint velit molestiae accusamus. Molestiae adipisci dolorum quidem dolorum nisi illo et. Quaerat id commodi voluptatem suscipit id."
                    },
                    "url": {
                        "en": "http://eichmann.com/"
                    }
                }
            }
        ],
        "category_groups": [
            {
                "name": "...",
                "category_ids": [
                    16,
                    18,
                    11
                ]
            },
            {
                "name": "...",
                "category_ids": [
                    17,
                    16,
                    14
                ]
            },
            {
                "name": "...",
                "category_ids": [
                    14,
                    15,
                    18
                ]
            }
        ],
        "currency": "EUR"
    }
]
Version update available Please adjust your integration to the latest stable version (1.9.0)
1.4.0 stable