query

inStockLocations

List stores where specified products are currently in stock.
Arguments
city
String
Search stores by the city in which they are situated.
latitude
Float
Latitude of the location from where one wants to retrieve the nearest stores, e.g. 72.8691788.
longitude
Float
Longitude of the location from where one wants to retrieve the nearest stores, e.g. 19.1174114.
pageNo
Int
The page number to navigate through the given set of results.
pageSize
Int
Number of items to retrieve in each page.
query
String
Search a store by its name or store_code.
range
Int
Use 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.
A list of application stores.
Pagination details for the store listing.
Query
1query inStockLocations(
2 $city: String
3 $latitude: Float
4 $longitude: Float
5 $pageNo: Int
6 $pageSize: Int
7 $query: String
8 $range: Int
9) {
10 inStockLocations(
11 city: $city
12 latitude: $latitude
13 longitude: $longitude
14 pageNo: $pageNo
15 pageSize: $pageSize
16 query: $query
17 range: $range
18 ) {
19 filters
20 items {
21 name
22 store_code
23 uid
24 }
25 page {
26 current
27 next_id
28 has_previous
29 has_next
30 item_total
31 type
32 size
33 }
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": 42
9}
Response
1{
2 "inStockLocations": {
3 "filters": [
4 {}
5 ],
6 "items": [
7 {
8 "name": "A name",
9 "store_code": "store_code",
10 "uid": 42
11 }
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": 42
21 }
22 }
23}