Raw
1 get:
2 operationId: GetStores
3 summary: List Stores
4 description: >-
5 Retrieve a list of stores. The stores can be filtered by fields such as
6 `id`. The stores can also be sorted or paginated.
7 x-authenticated: true
8 parameters:
9 - name: fields
10 in: query
11 description: >-
12 Comma-separated fields that should be included in the returned data. if
13 a field is prefixed with `+` it will be added to the default fields,
14 using `-` will remove it from the default fields. without prefix it will
15 replace the entire default fields.
16 required: false
17 schema:
18 type: string
19 title: fields
20 description: >-
21 Comma-separated fields that should be included in the returned data.
22 if a field is prefixed with `+` it will be added to the default
23 fields, using `-` will remove it from the default fields. without
24 prefix it will replace the entire default fields.
25 externalDocs:
26 url: '#select-fields-and-relations'
27 - name: offset
28 in: query
29 description: The number of items to skip when retrieving a list.
30 required: false
31 schema:
32 type: number
33 title: offset
34 description: The number of items to skip when retrieving a list.
35 externalDocs:
36 url: '#pagination'
37 - name: limit
38 in: query
39 description: Limit the number of items returned in the list.
40 required: false
41 schema:
42 type: number
43 title: limit
44 description: Limit the number of items returned in the list.
45 externalDocs:
46 url: '#pagination'
47 - name: order
48 in: query
49 description: >-
50 The field to sort the data by. By default, the sort order is ascending.
51 To change the order to descending, prefix the field name with `-`.
52 required: false
53 schema:
54 type: string
55 title: order
56 description: >-
57 The field to sort the data by. By default, the sort order is
58 ascending. To change the order to descending, prefix the field name
59 with `-`.
60 - name: q
61 in: query
62 description: Search term to filter the store's searchable properties.
63 required: false
64 schema:
65 type: string
66 title: q
67 description: Search term to filter the store's searchable properties.
68 - name: id
69 in: query
70 required: false
71 schema:
72 oneOf:
73 - type: string
74 title: id
75 description: Filter by a store ID.
76 - type: array
77 description: Filter by store IDs.
78 items:
79 type: string
80 title: id
81 description: A store ID.
82 - name: name
83 in: query
84 required: false
85 schema:
86 oneOf:
87 - type: string
88 title: name
89 description: Filter by a store name.
90 - type: array
91 description: Filter by store names.
92 items:
93 type: string
94 title: name
95 description: A store name.
96 - name: $and
97 in: query
98 required: false
99 schema:
100 type: array
101 description: >-
102 Join query parameters with an AND condition. Each object's content is
103 the same type as the expected query parameters.
104 items:
105 type: object
106 title: $and
107 - name: $or
108 in: query
109 required: false
110 schema:
111 type: array
112 description: >-
113 Join query parameters with an OR condition. Each object's content is
114 the same type as the expected query parameters.
115 items:
116 type: object
117 title: $or
118 - name: with_deleted
119 in: query
120 description: Whether to include deleted records in the result.
121 required: false
122 schema:
123 type: boolean
124 title: with_deleted
125 description: Whether to include deleted records in the result.
126 security:
127 - api_token: []
128 - cookie_auth: []
129 - jwt_token: []
130 x-codeSamples:
131 - lang: JavaScript
132 label: JS SDK
133 source:
134 $ref: ../code_samples/JavaScript/admin_stores/get.js
135 - lang: Shell
136 label: cURL
137 source:
138 $ref: ../code_samples/Shell/admin_stores/get.sh
139 tags:
140 - Stores
141 responses:
142 '200':
143 description: OK
144 content:
145 application/json:
146 schema:
147 $ref: ../components/schemas/AdminStoreListResponse.yaml
148 '400':
149 $ref: ../components/responses/400_error.yaml
150 '401':
151 $ref: ../components/responses/unauthorized.yaml
152 '404':
153 $ref: ../components/responses/not_found_error.yaml
154 '409':
155 $ref: ../components/responses/invalid_state_error.yaml
156 '422':
157 $ref: ../components/responses/invalid_request_error.yaml
158 '500':
159 $ref: ../components/responses/500_error.yaml