GET /shops/search
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 |
GET /shops/search?query=...&coordinates%5Blatitude%5D=1%2C54361&coordinates%5Blongitude%5D=0%2C45645&distance=15&sortBy=distance&company_id=19 HTTP/1.1
Host: api.bakeronline.be
X-VERSION: 1.5.1
Accept-Language: en-US,en;q=0.5
Array of 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 |
allow_comments | Bool | A boolean value |
offers | [Offer.simple] | Array of Offer.simple |
images | [String: Image] | Dictionary of Image with keys of type String |
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. |
allow_invoices | Bool | A boolean value |
currency | Currency | 3 letter ISO 4217 currency name (string) |
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: 19404
[
{
"id": 16,
"name": "Jaeden Kuphal DDS",
"address": {
"street": "Sint-Denijslaan",
"nr": "96",
"zipcode": "9000",
"city": "Gent",
"country": "BE",
"position": {
"latitude": 1.54361,
"longitude": 0.45645
}
},
"allow_comments": true,
"offers": [
{
"id": 13,
"name": "Black Friday"
},
{
"id": 15,
"name": "Black Friday"
},
{
"id": 12,
"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_orders": false,
"delivery_use_intervals": false,
"categories": [
{
"id": 10,
"name": "Dusty Bogisich",
"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 quis fugit ad quae reiciendis vel et quia suscipit."
},
"description": {
"en": "Minima rem esse similique ea placeat. Quo natus corrupti consequatur ea error et. Eaque molestias est totam itaque. Repellendus iusto consequuntur molestiae tenetur iste."
},
"url": {
"en": "http://koch.com/in-quos-quisquam-odit-qui-delectus-officia-voluptates.html"
}
}
},
{
"id": 13,
"name": "Mr. Ryleigh Boyle",
"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": "Est temporibus itaque aut rem beatae eum."
},
"description": {
"en": "Architecto quis voluptas ad dicta aut aut. Cum aspernatur recusandae est possimus. Odit illum adipisci ipsum nihil ut quam molestiae ad. Aut suscipit est et in dolorum eum eaque."
},
"url": {
"en": "http://waelchi.info/"
}
}
},
{
"id": 18,
"name": "Greyson Gibson",
"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": "Quia nesciunt omnis eum exercitationem qui laborum aut atque ut vel."
},
"description": {
"en": "Rerum maiores et culpa totam mollitia. Consectetur non sequi voluptatum exercitationem. Neque omnis sunt ut iure. Necessitatibus vel aperiam repudiandae quia vel qui delectus."
},
"url": {
"en": "http://bosco.org/quam-et-minima-facilis-modi-aspernatur-pariatur"
}
}
}
],
"category_groups": [
{
"name": "...",
"category_ids": [
12,
11,
15
]
},
{
"name": "...",
"category_ids": [
19,
13,
16
]
},
{
"name": "...",
"category_ids": [
12,
16,
19
]
}
],
"allow_invoices": false,
"currency": "EUR"
},
{
"id": 18,
"name": "Prof. Myriam Stehr IV",
"address": {
"street": "Sint-Denijslaan",
"nr": "96",
"zipcode": "9000",
"city": "Gent",
"country": "BE",
"position": {
"latitude": 1.54361,
"longitude": 0.45645
}
},
"allow_comments": false,
"offers": [
{
"id": 14,
"name": "Black Friday"
},
{
"id": 19,
"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": true
}
},
"allow_orders": false,
"delivery_use_intervals": true,
"categories": [
{
"id": 15,
"name": "Monserrat Schmitt I",
"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": "Praesentium voluptatem distinctio ut repellendus libero voluptas eaque incidunt."
},
"description": {
"en": "Cum voluptatem aliquam hic dolorem enim quia et nostrum. Ullam quae itaque est quos aut quos impedit. Eum assumenda et et voluptas aut. Fugiat et expedita provident quis."
},
"url": {
"en": "https://www.grimes.com/nisi-delectus-omnis-omnis"
}
}
},
{
"id": 17,
"name": "Randal Kassulke",
"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": "Exercitationem est veniam voluptatum sit culpa consequatur."
},
"description": {
"en": "Facilis repellendus repellendus quidem dolorum nesciunt nemo. Et consequatur eos consequatur et. Rerum et amet recusandae ipsa quia odio. Provident quos quia qui cum dolorem suscipit."
},
"url": {
"en": "http://www.simonis.com/consequuntur-corporis-in-ut-aut-et.html"
}
}
},
{
"id": 11,
"name": "Stephany Toy",
"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": "Laboriosam at suscipit ipsam vel recusandae veniam non ducimus."
},
"description": {
"en": "Cum magnam consectetur sunt atque dolorem. Ut consequatur quia amet autem molestiae aut. Omnis rem cumque suscipit et deleniti aut consequatur."
},
"url": {
"en": "http://www.hodkiewicz.com/ut-aut-placeat-fugiat-debitis-occaecati-non-suscipit-aut.html"
}
}
}
],
"category_groups": [
{
"name": "...",
"category_ids": [
13,
14,
15
]
},
{
"name": "...",
"category_ids": [
15,
16,
19
]
},
{
"name": "...",
"category_ids": [
15,
13,
17
]
}
],
"allow_invoices": false,
"currency": "EUR"
},
{
"id": 14,
"name": "Elias Beatty",
"address": {
"street": "Sint-Denijslaan",
"nr": "96",
"zipcode": "9000",
"city": "Gent",
"country": "BE",
"position": {
"latitude": 1.54361,
"longitude": 0.45645
}
},
"allow_comments": true,
"offers": [
{
"id": 18,
"name": "Black Friday"
},
{
"id": 17,
"name": "Black Friday"
},
{
"id": 10,
"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_orders": true,
"delivery_use_intervals": true,
"categories": [
{
"id": 17,
"name": "Dr. Demetrius Hand",
"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": "Nihil aliquam officia officia aut aut blanditiis necessitatibus explicabo."
},
"description": {
"en": "Qui quia earum aliquid beatae aliquam unde blanditiis. Voluptas sint expedita aut quia asperiores ut. Aperiam modi magni vitae praesentium dolorem. Dolore quo illo tempora sint voluptatem ut."
},
"url": {
"en": "http://www.cartwright.org/repudiandae-rerum-voluptatem-adipisci"
}
}
},
{
"id": 17,
"name": "Prof. Johnny Wehner 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": "Autem occaecati ut cumque voluptates est et illo quaerat at sed laboriosam."
},
"description": {
"en": "Alias architecto voluptatem perspiciatis officiis ut tempora sit dolorum. Natus reiciendis perferendis odio necessitatibus deleniti. Voluptatibus repellendus voluptas rerum enim iusto beatae ut."
},
"url": {
"en": "https://www.jast.net/voluptatibus-quia-sed-illo-non"
}
}
},
{
"id": 14,
"name": "Anais Nienow",
"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": "Debitis velit consequatur est explicabo modi totam."
},
"description": {
"en": "Iure eum odit ducimus nostrum voluptas quibusdam voluptatem. Voluptas nemo deleniti architecto laboriosam animi. Porro ducimus accusamus reprehenderit aut numquam officia."
},
"url": {
"en": "http://nolan.info/assumenda-sapiente-ea-minus-qui-aut-neque"
}
}
}
],
"category_groups": [
{
"name": "...",
"category_ids": [
14,
16,
16
]
},
{
"name": "...",
"category_ids": [
13,
14,
10
]
},
{
"name": "...",
"category_ids": [
10,
18,
15
]
}
],
"allow_invoices": false,
"currency": "EUR"
}
]