query

stores

List all stores associated with the sales channel.
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
Required
An array of store details. Each store includes information such as name, address, and geographic coordinates.
Required
An array of store details. Each store includes information such as name, address, and geographic coordinates.
Query
1query stores(
2 $city: String
3 $latitude: Float
4 $longitude: Float
5 $pageNo: Int
6 $pageSize: Int
7 $query: String
8 $range: Int
9) {
10 stores(
11 city: $city
12 latitude: $latitude
13 longitude: $longitude
14 pageNo: $pageNo
15 pageSize: $pageSize
16 query: $query
17 range: $range
18 ) {
19 items {
20 address
21 city
22 country
23 name
24 pincode
25 state
26 store_code
27 store_email
28 uid
29 tags
30 }
31 page {
32 current
33 next_id
34 has_previous
35 has_next
36 item_total
37 type
38 size
39 }
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": 42
9}
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": 42
27 }
28 }
29}