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
filters
[JSON]A list of filters applied to the store listing.
items
[InStockStore]A list of application stores.
page
PageInfoPagination details for the store listing.
Query
1query inStockLocations(2 $city: String3 $latitude: Float4 $longitude: Float5 $pageNo: Int6 $pageSize: Int7 $query: String8 $range: Int9) {10 inStockLocations(11 city: $city12 latitude: $latitude13 longitude: $longitude14 pageNo: $pageNo15 pageSize: $pageSize16 query: $query17 range: $range18 ) {19 filters20 items {21 name22 store_code23 uid24 }25 page {26 current27 next_id28 has_previous29 has_next30 item_total31 type32 size33 }34 }35}
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 "inStockLocations": {3 "filters": [4 {}5 ],6 "items": [7 {8 "name": "A name",9 "store_code": "store_code",10 "uid": 4211 }12 ],13 "page": {14 "current": 42,15 "next_id": "next_id",16 "has_previous": true,17 "has_next": true,18 "item_total": 42,19 "type": "type",20 "size": 4221 }22 }23}
Was this section helpful?