Arguments
city
StringSearch stores by the city in which they are situated.
latitude
FloatLatitude of the location from where one wants to retrieve the nearest stores, e.g. 72.8691788.
longitude
FloatLongitude of the location from where one wants to retrieve the nearest stores, e.g. 19.1174114.
pageNo
IntThe page number to navigate through the given set of results.
pageSize
IntNumber of items to retrieve in each page.
query
StringSearch a store by its name or store_code.
range
IntUse this to retrieve stores within a particular range in meters, e.g. 10000, to indicate a 10km range.
Response
items
[StoreDetail]!Required
An array of store details. Each store includes information such as name, address, and geographic coordinates.
page
PageInfo!Required
An array of store details. Each store includes information such as name, address, and geographic coordinates.
Query
1query stores(2 $city: String3 $latitude: Float4 $longitude: Float5 $pageNo: Int6 $pageSize: Int7 $query: String8 $range: Int9) {10 stores(11 city: $city12 latitude: $latitude13 longitude: $longitude14 pageNo: $pageNo15 pageSize: $pageSize16 query: $query17 range: $range18 ) {19 items {20 address21 city22 country23 name24 pincode25 state26 store_code27 store_email28 uid29 tags30 }31 page {32 current33 next_id34 has_previous35 has_next36 item_total37 type38 size39 }40 }41}
Try it
Input Variables
1{2 "city": "Montreal",3 "latitude": 30.7,4 "longitude": 30.7,5 "pageNo": 42,6 "pageSize": 42,7 "query": "query",8 "range": 429}
Response
1{2 "stores": {3 "items": [4 {5 "address": "2832 Sesame Street",6 "city": "Montreal",7 "country": "Canada",8 "name": "A name",9 "pincode": 42,10 "state": "Quebec",11 "store_code": "store_code",12 "store_email": "store_email",13 "uid": 42,14 "tags": [15 "tags"16 ]17 }18 ],19 "page": {20 "current": 42,21 "next_id": "next_id",22 "has_previous": true,23 "has_next": true,24 "item_total": 42,25 "type": "type",26 "size": 4227 }28 }29}
Was this section helpful?