|
1
|
get: |
|
2
|
operationId: GetExchanges |
|
3
|
summary: List Exchanges |
|
4
|
description: >- |
|
5
|
Retrieve a list of exchanges. The exchanges can be filtered by fields such |
|
6
|
as `id`. The exchanges 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: deleted_at |
|
61
|
in: query |
|
62
|
description: Filter by an exchange's deletion date. |
|
63
|
required: false |
|
64
|
schema: |
|
65
|
type: object |
|
66
|
description: Filter by an exchange's deletion date. |
|
67
|
properties: |
|
68
|
$and: |
|
69
|
type: array |
|
70
|
description: >- |
|
71
|
Join query parameters with an AND condition. Each object's content |
|
72
|
is the same type as the expected query parameters. |
|
73
|
items: |
|
74
|
type: object |
|
75
|
title: $and |
|
76
|
$or: |
|
77
|
type: array |
|
78
|
description: >- |
|
79
|
Join query parameters with an OR condition. Each object's content |
|
80
|
is the same type as the expected query parameters. |
|
81
|
items: |
|
82
|
type: object |
|
83
|
title: $or |
|
84
|
$eq: |
|
85
|
oneOf: |
|
86
|
- type: string |
|
87
|
title: $eq |
|
88
|
description: Filter by an exact match. |
|
89
|
- type: array |
|
90
|
description: Filter by multiple exact matches. |
|
91
|
items: |
|
92
|
type: string |
|
93
|
title: $eq |
|
94
|
description: An exact match. |
|
95
|
$ne: |
|
96
|
type: string |
|
97
|
title: $ne |
|
98
|
description: Filter by values not equal to this parameter. |
|
99
|
$in: |
|
100
|
type: array |
|
101
|
description: Filter by values in this array. |
|
102
|
items: |
|
103
|
type: string |
|
104
|
title: $in |
|
105
|
description: The value to match. |
|
106
|
$nin: |
|
107
|
type: array |
|
108
|
description: Filter by values not in this array. |
|
109
|
items: |
|
110
|
type: string |
|
111
|
title: $nin |
|
112
|
description: The value not to match. |
|
113
|
$not: |
|
114
|
oneOf: |
|
115
|
- type: string |
|
116
|
title: $not |
|
117
|
description: Filter by values not matching this parameter. |
|
118
|
- type: object |
|
119
|
description: >- |
|
120
|
Filter by values not matching the conditions in this |
|
121
|
parameter. |
|
122
|
properties: |
|
123
|
$and: |
|
124
|
type: array |
|
125
|
description: >- |
|
126
|
Join query parameters with an AND condition. Each object's |
|
127
|
content is the same type as the expected query parameters. |
|
128
|
items: |
|
129
|
type: object |
|
130
|
title: $and |
|
131
|
$or: |
|
132
|
type: array |
|
133
|
description: >- |
|
134
|
Join query parameters with an OR condition. Each object's |
|
135
|
content is the same type as the expected query parameters. |
|
136
|
items: |
|
137
|
type: object |
|
138
|
title: $or |
|
139
|
$eq: |
|
140
|
oneOf: |
|
141
|
- type: string |
|
142
|
title: $eq |
|
143
|
description: Filter by an exact match. |
|
144
|
- type: array |
|
145
|
description: Filter by multiple exact matches. |
|
146
|
items: |
|
147
|
type: string |
|
148
|
title: $eq |
|
149
|
description: The value to match. |
|
150
|
$ne: |
|
151
|
type: string |
|
152
|
title: $ne |
|
153
|
description: Filter by values not matching this parameter. |
|
154
|
$in: |
|
155
|
type: array |
|
156
|
description: Filter by values in this array. |
|
157
|
items: |
|
158
|
type: string |
|
159
|
title: $in |
|
160
|
description: The value to match. |
|
161
|
$nin: |
|
162
|
type: array |
|
163
|
description: Filter by values not in this array. |
|
164
|
items: |
|
165
|
type: string |
|
166
|
title: $nin |
|
167
|
description: The value to not match |
|
168
|
$not: |
|
169
|
oneOf: |
|
170
|
- type: string |
|
171
|
title: $not |
|
172
|
description: Filter by values not matching this parameter |
|
173
|
- type: object |
|
174
|
description: >- |
|
175
|
Filter by values not matching the conditions in this |
|
176
|
parameter. |
|
177
|
- type: array |
|
178
|
description: >- |
|
179
|
Filter by values not matching the values of this |
|
180
|
parameter. |
|
181
|
items: |
|
182
|
type: string |
|
183
|
title: $not |
|
184
|
description: The values to not match. |
|
185
|
$gt: |
|
186
|
type: string |
|
187
|
title: $gt |
|
188
|
description: >- |
|
189
|
Filter by values greater than this parameter. Useful for |
|
190
|
numbers and dates only. |
|
191
|
$gte: |
|
192
|
type: string |
|
193
|
title: $gte |
|
194
|
description: >- |
|
195
|
Filter by values greater than or equal to this parameter. |
|
196
|
Useful for numbers and dates only. |
|
197
|
$lt: |
|
198
|
type: string |
|
199
|
title: $lt |
|
200
|
description: >- |
|
201
|
Filter by values less than this parameter. Useful for |
|
202
|
numbers and dates only. |
|
203
|
$lte: |
|
204
|
type: string |
|
205
|
title: $lte |
|
206
|
description: >- |
|
207
|
Filter by values less than or equal to this parameter. |
|
208
|
Useful for numbers and dates only. |
|
209
|
$like: |
|
210
|
type: string |
|
211
|
title: $like |
|
212
|
description: Apply a `like` filter. Useful for strings only. |
|
213
|
$re: |
|
214
|
type: string |
|
215
|
title: $re |
|
216
|
description: Apply a regex filter. Useful for strings only. |
|
217
|
$ilike: |
|
218
|
type: string |
|
219
|
title: $ilike |
|
220
|
description: >- |
|
221
|
Apply a case-insensitive `like` filter. Useful for strings |
|
222
|
only. |
|
223
|
$fulltext: |
|
224
|
type: string |
|
225
|
title: $fulltext |
|
226
|
description: Filter to apply on full-text properties. |
|
227
|
$overlap: |
|
228
|
type: array |
|
229
|
description: >- |
|
230
|
Filter arrays that have overlapping values with this |
|
231
|
parameter. |
|
232
|
items: |
|
233
|
type: string |
|
234
|
title: $overlap |
|
235
|
description: The value to match. |
|
236
|
$contains: |
|
237
|
type: array |
|
238
|
description: >- |
|
239
|
Filter arrays that contain some of the values of this |
|
240
|
parameter. |
|
241
|
items: |
|
242
|
type: string |
|
243
|
title: $contains |
|
244
|
description: The values to match. |
|
245
|
$contained: |
|
246
|
type: array |
|
247
|
description: Filter arrays that contain all values of this parameter. |
|
248
|
items: |
|
249
|
type: string |
|
250
|
title: $contained |
|
251
|
description: The values to match. |
|
252
|
$exists: |
|
253
|
type: boolean |
|
254
|
title: $exists |
|
255
|
description: >- |
|
256
|
Filter by whether a value for this parameter exists (not |
|
257
|
`null`). |
|
258
|
- type: array |
|
259
|
description: Filter by values not matching those in this parameter. |
|
260
|
items: |
|
261
|
type: string |
|
262
|
title: $not |
|
263
|
description: The values to not match. |
|
264
|
$gt: |
|
265
|
type: string |
|
266
|
title: $gt |
|
267
|
description: >- |
|
268
|
Filter by values greater than this parameter. Useful for numbers |
|
269
|
and dates only. |
|
270
|
$gte: |
|
271
|
type: string |
|
272
|
title: $gte |
|
273
|
description: >- |
|
274
|
Filter by values greater than or equal to this parameter. Useful |
|
275
|
for numbers and dates only. |
|
276
|
$lt: |
|
277
|
type: string |
|
278
|
title: $lt |
|
279
|
description: >- |
|
280
|
Filter by values less than this parameter. Useful for numbers and |
|
281
|
dates only. |
|
282
|
$lte: |
|
283
|
type: string |
|
284
|
title: $lte |
|
285
|
description: >- |
|
286
|
Filter by values less than or equal to this parameter. Useful for |
|
287
|
numbers and dates only. |
|
288
|
$like: |
|
289
|
type: string |
|
290
|
title: $like |
|
291
|
description: Apply a `like` filter. Useful for strings only. |
|
292
|
$re: |
|
293
|
type: string |
|
294
|
title: $re |
|
295
|
description: Apply a regex filter. Useful for strings only. |
|
296
|
$ilike: |
|
297
|
type: string |
|
298
|
title: $ilike |
|
299
|
description: Apply a case-insensitive `like` filter. Useful for strings only. |
|
300
|
$fulltext: |
|
301
|
type: string |
|
302
|
title: $fulltext |
|
303
|
description: Filter to apply on full-text properties. |
|
304
|
$overlap: |
|
305
|
type: array |
|
306
|
description: Filter arrays that have overlapping values with this parameter. |
|
307
|
items: |
|
308
|
type: string |
|
309
|
title: $overlap |
|
310
|
description: The values to match. |
|
311
|
$contains: |
|
312
|
type: array |
|
313
|
description: Filter arrays that contain some of the values of this parameter. |
|
314
|
items: |
|
315
|
type: string |
|
316
|
title: $contains |
|
317
|
description: The values to match. |
|
318
|
$contained: |
|
319
|
type: array |
|
320
|
description: Filter arrays that contain all values of this parameter. |
|
321
|
items: |
|
322
|
type: string |
|
323
|
title: $contained |
|
324
|
description: The values to match. |
|
325
|
$exists: |
|
326
|
type: boolean |
|
327
|
title: $exists |
|
328
|
description: Filter by whether a value for this parameter exists (not `null`). |
|
329
|
title: deleted_at |
|
330
|
- name: id |
|
331
|
in: query |
|
332
|
required: false |
|
333
|
schema: |
|
334
|
oneOf: |
|
335
|
- type: string |
|
336
|
title: id |
|
337
|
description: Filter by an exchange ID. |
|
338
|
- type: array |
|
339
|
description: Filter by exchange IDs. |
|
340
|
items: |
|
341
|
type: string |
|
342
|
title: id |
|
343
|
description: An exchange ID. |
|
344
|
- name: order_id |
|
345
|
in: query |
|
346
|
required: false |
|
347
|
schema: |
|
348
|
oneOf: |
|
349
|
- type: string |
|
350
|
title: order_id |
|
351
|
description: Filter by an exchange's order ID. |
|
352
|
- type: array |
|
353
|
description: Filter by order IDs that the exchanges belong to. |
|
354
|
items: |
|
355
|
type: string |
|
356
|
title: order_id |
|
357
|
description: An order's ID. |
|
358
|
- name: status |
|
359
|
in: query |
|
360
|
required: false |
|
361
|
schema: |
|
362
|
oneOf: |
|
363
|
- type: string |
|
364
|
title: status |
|
365
|
description: Filter by an exchange's status. |
|
366
|
- type: array |
|
367
|
description: Filter by exchange statuses. |
|
368
|
items: |
|
369
|
type: string |
|
370
|
title: status |
|
371
|
description: An exchange status. |
|
372
|
- name: created_at |
|
373
|
in: query |
|
374
|
description: Filter by the exchange's creation date. |
|
375
|
required: false |
|
376
|
schema: |
|
377
|
type: object |
|
378
|
description: Filter by the exchange's creation date. |
|
379
|
properties: |
|
380
|
$and: |
|
381
|
type: array |
|
382
|
description: >- |
|
383
|
Join query parameters with an AND condition. Each object's content |
|
384
|
is the same type as the expected query parameters. |
|
385
|
items: |
|
386
|
type: object |
|
387
|
title: $and |
|
388
|
$or: |
|
389
|
type: array |
|
390
|
description: >- |
|
391
|
Join query parameters with an OR condition. Each object's content |
|
392
|
is the same type as the expected query parameters. |
|
393
|
items: |
|
394
|
type: object |
|
395
|
title: $or |
|
396
|
$eq: |
|
397
|
oneOf: |
|
398
|
- type: string |
|
399
|
title: $eq |
|
400
|
description: Filter by an exact match. |
|
401
|
- type: array |
|
402
|
description: Filter by multiple exact matches. |
|
403
|
items: |
|
404
|
type: string |
|
405
|
title: $eq |
|
406
|
description: An exact match. |
|
407
|
$ne: |
|
408
|
type: string |
|
409
|
title: $ne |
|
410
|
description: Filter by values not equal to this parameter. |
|
411
|
$in: |
|
412
|
type: array |
|
413
|
description: Filter by values in this array. |
|
414
|
items: |
|
415
|
type: string |
|
416
|
title: $in |
|
417
|
description: The value to match. |
|
418
|
$nin: |
|
419
|
type: array |
|
420
|
description: Filter by values not in this array. |
|
421
|
items: |
|
422
|
type: string |
|
423
|
title: $nin |
|
424
|
description: The value not to match. |
|
425
|
$not: |
|
426
|
oneOf: |
|
427
|
- type: string |
|
428
|
title: $not |
|
429
|
description: Filter by values not matching this parameter. |
|
430
|
- type: object |
|
431
|
description: >- |
|
432
|
Filter by values not matching the conditions in this |
|
433
|
parameter. |
|
434
|
properties: |
|
435
|
$and: |
|
436
|
type: array |
|
437
|
description: >- |
|
438
|
Join query parameters with an AND condition. Each object's |
|
439
|
content is the same type as the expected query parameters. |
|
440
|
items: |
|
441
|
type: object |
|
442
|
title: $and |
|
443
|
$or: |
|
444
|
type: array |
|
445
|
description: >- |
|
446
|
Join query parameters with an OR condition. Each object's |
|
447
|
content is the same type as the expected query parameters. |
|
448
|
items: |
|
449
|
type: object |
|
450
|
title: $or |
|
451
|
$eq: |
|
452
|
oneOf: |
|
453
|
- type: string |
|
454
|
title: $eq |
|
455
|
description: Filter by an exact match. |
|
456
|
- type: array |
|
457
|
description: Filter by multiple exact matches. |
|
458
|
items: |
|
459
|
type: string |
|
460
|
title: $eq |
|
461
|
description: The value to match. |
|
462
|
$ne: |
|
463
|
type: string |
|
464
|
title: $ne |
|
465
|
description: Filter by values not matching this parameter. |
|
466
|
$in: |
|
467
|
type: array |
|
468
|
description: Filter by values in this array. |
|
469
|
items: |
|
470
|
type: string |
|
471
|
title: $in |
|
472
|
description: The value to match. |
|
473
|
$nin: |
|
474
|
type: array |
|
475
|
description: Filter by values not in this array. |
|
476
|
items: |
|
477
|
type: string |
|
478
|
title: $nin |
|
479
|
description: The value to not match |
|
480
|
$not: |
|
481
|
oneOf: |
|
482
|
- type: string |
|
483
|
title: $not |
|
484
|
description: Filter by values not matching this parameter |
|
485
|
- type: object |
|
486
|
description: >- |
|
487
|
Filter by values not matching the conditions in this |
|
488
|
parameter. |
|
489
|
- type: array |
|
490
|
description: >- |
|
491
|
Filter by values not matching the values of this |
|
492
|
parameter. |
|
493
|
items: |
|
494
|
type: string |
|
495
|
title: $not |
|
496
|
description: The values to not match. |
|
497
|
$gt: |
|
498
|
type: string |
|
499
|
title: $gt |
|
500
|
description: >- |
|
501
|
Filter by values greater than this parameter. Useful for |
|
502
|
numbers and dates only. |
|
503
|
$gte: |
|
504
|
type: string |
|
505
|
title: $gte |
|
506
|
description: >- |
|
507
|
Filter by values greater than or equal to this parameter. |
|
508
|
Useful for numbers and dates only. |
|
509
|
$lt: |
|
510
|
type: string |
|
511
|
title: $lt |
|
512
|
description: >- |
|
513
|
Filter by values less than this parameter. Useful for |
|
514
|
numbers and dates only. |
|
515
|
$lte: |
|
516
|
type: string |
|
517
|
title: $lte |
|
518
|
description: >- |
|
519
|
Filter by values less than or equal to this parameter. |
|
520
|
Useful for numbers and dates only. |
|
521
|
$like: |
|
522
|
type: string |
|
523
|
title: $like |
|
524
|
description: Apply a `like` filter. Useful for strings only. |
|
525
|
$re: |
|
526
|
type: string |
|
527
|
title: $re |
|
528
|
description: Apply a regex filter. Useful for strings only. |
|
529
|
$ilike: |
|
530
|
type: string |
|
531
|
title: $ilike |
|
532
|
description: >- |
|
533
|
Apply a case-insensitive `like` filter. Useful for strings |
|
534
|
only. |
|
535
|
$fulltext: |
|
536
|
type: string |
|
537
|
title: $fulltext |
|
538
|
description: Filter to apply on full-text properties. |
|
539
|
$overlap: |
|
540
|
type: array |
|
541
|
description: >- |
|
542
|
Filter arrays that have overlapping values with this |
|
543
|
parameter. |
|
544
|
items: |
|
545
|
type: string |
|
546
|
title: $overlap |
|
547
|
description: The value to match. |
|
548
|
$contains: |
|
549
|
type: array |
|
550
|
description: >- |
|
551
|
Filter arrays that contain some of the values of this |
|
552
|
parameter. |
|
553
|
items: |
|
554
|
type: string |
|
555
|
title: $contains |
|
556
|
description: The values to match. |
|
557
|
$contained: |
|
558
|
type: array |
|
559
|
description: Filter arrays that contain all values of this parameter. |
|
560
|
items: |
|
561
|
type: string |
|
562
|
title: $contained |
|
563
|
description: The values to match. |
|
564
|
$exists: |
|
565
|
type: boolean |
|
566
|
title: $exists |
|
567
|
description: >- |
|
568
|
Filter by whether a value for this parameter exists (not |
|
569
|
`null`). |
|
570
|
- type: array |
|
571
|
description: Filter by values not matching those in this parameter. |
|
572
|
items: |
|
573
|
type: string |
|
574
|
title: $not |
|
575
|
description: The values to not match. |
|
576
|
$gt: |
|
577
|
type: string |
|
578
|
title: $gt |
|
579
|
description: >- |
|
580
|
Filter by values greater than this parameter. Useful for numbers |
|
581
|
and dates only. |
|
582
|
$gte: |
|
583
|
type: string |
|
584
|
title: $gte |
|
585
|
description: >- |
|
586
|
Filter by values greater than or equal to this parameter. Useful |
|
587
|
for numbers and dates only. |
|
588
|
$lt: |
|
589
|
type: string |
|
590
|
title: $lt |
|
591
|
description: >- |
|
592
|
Filter by values less than this parameter. Useful for numbers and |
|
593
|
dates only. |
|
594
|
$lte: |
|
595
|
type: string |
|
596
|
title: $lte |
|
597
|
description: >- |
|
598
|
Filter by values less than or equal to this parameter. Useful for |
|
599
|
numbers and dates only. |
|
600
|
$like: |
|
601
|
type: string |
|
602
|
title: $like |
|
603
|
description: Apply a `like` filter. Useful for strings only. |
|
604
|
$re: |
|
605
|
type: string |
|
606
|
title: $re |
|
607
|
description: Apply a regex filter. Useful for strings only. |
|
608
|
$ilike: |
|
609
|
type: string |
|
610
|
title: $ilike |
|
611
|
description: Apply a case-insensitive `like` filter. Useful for strings only. |
|
612
|
$fulltext: |
|
613
|
type: string |
|
614
|
title: $fulltext |
|
615
|
description: Filter to apply on full-text properties. |
|
616
|
$overlap: |
|
617
|
type: array |
|
618
|
description: Filter arrays that have overlapping values with this parameter. |
|
619
|
items: |
|
620
|
type: string |
|
621
|
title: $overlap |
|
622
|
description: The values to match. |
|
623
|
$contains: |
|
624
|
type: array |
|
625
|
description: Filter arrays that contain some of the values of this parameter. |
|
626
|
items: |
|
627
|
type: string |
|
628
|
title: $contains |
|
629
|
description: The values to match. |
|
630
|
$contained: |
|
631
|
type: array |
|
632
|
description: Filter arrays that contain all values of this parameter. |
|
633
|
items: |
|
634
|
type: string |
|
635
|
title: $contained |
|
636
|
description: The values to match. |
|
637
|
$exists: |
|
638
|
type: boolean |
|
639
|
title: $exists |
|
640
|
description: Filter by whether a value for this parameter exists (not `null`). |
|
641
|
title: created_at |
|
642
|
- name: updated_at |
|
643
|
in: query |
|
644
|
description: Filter by the exchange's update date. |
|
645
|
required: false |
|
646
|
schema: |
|
647
|
type: object |
|
648
|
description: Filter by the exchange's update date. |
|
649
|
properties: |
|
650
|
$and: |
|
651
|
type: array |
|
652
|
description: >- |
|
653
|
Join query parameters with an AND condition. Each object's content |
|
654
|
is the same type as the expected query parameters. |
|
655
|
items: |
|
656
|
type: object |
|
657
|
title: $and |
|
658
|
$or: |
|
659
|
type: array |
|
660
|
description: >- |
|
661
|
Join query parameters with an OR condition. Each object's content |
|
662
|
is the same type as the expected query parameters. |
|
663
|
items: |
|
664
|
type: object |
|
665
|
title: $or |
|
666
|
$eq: |
|
667
|
oneOf: |
|
668
|
- type: string |
|
669
|
title: $eq |
|
670
|
description: Filter by an exact match. |
|
671
|
- type: array |
|
672
|
description: Filter by multiple exact matches. |
|
673
|
items: |
|
674
|
type: string |
|
675
|
title: $eq |
|
676
|
description: An exact match. |
|
677
|
$ne: |
|
678
|
type: string |
|
679
|
title: $ne |
|
680
|
description: Filter by values not equal to this parameter. |
|
681
|
$in: |
|
682
|
type: array |
|
683
|
description: Filter by values in this array. |
|
684
|
items: |
|
685
|
type: string |
|
686
|
title: $in |
|
687
|
description: The value to match. |
|
688
|
$nin: |
|
689
|
type: array |
|
690
|
description: Filter by values not in this array. |
|
691
|
items: |
|
692
|
type: string |
|
693
|
title: $nin |
|
694
|
description: The value not to match. |
|
695
|
$not: |
|
696
|
oneOf: |
|
697
|
- type: string |
|
698
|
title: $not |
|
699
|
description: Filter by values not matching this parameter. |
|
700
|
- type: object |
|
701
|
description: >- |
|
702
|
Filter by values not matching the conditions in this |
|
703
|
parameter. |
|
704
|
properties: |
|
705
|
$and: |
|
706
|
type: array |
|
707
|
description: >- |
|
708
|
Join query parameters with an AND condition. Each object's |
|
709
|
content is the same type as the expected query parameters. |
|
710
|
items: |
|
711
|
type: object |
|
712
|
title: $and |
|
713
|
$or: |
|
714
|
type: array |
|
715
|
description: >- |
|
716
|
Join query parameters with an OR condition. Each object's |
|
717
|
content is the same type as the expected query parameters. |
|
718
|
items: |
|
719
|
type: object |
|
720
|
title: $or |
|
721
|
$eq: |
|
722
|
oneOf: |
|
723
|
- type: string |
|
724
|
title: $eq |
|
725
|
description: Filter by an exact match. |
|
726
|
- type: array |
|
727
|
description: Filter by multiple exact matches. |
|
728
|
items: |
|
729
|
type: string |
|
730
|
title: $eq |
|
731
|
description: The value to match. |
|
732
|
$ne: |
|
733
|
type: string |
|
734
|
title: $ne |
|
735
|
description: Filter by values not matching this parameter. |
|
736
|
$in: |
|
737
|
type: array |
|
738
|
description: Filter by values in this array. |
|
739
|
items: |
|
740
|
type: string |
|
741
|
title: $in |
|
742
|
description: The value to match. |
|
743
|
$nin: |
|
744
|
type: array |
|
745
|
description: Filter by values not in this array. |
|
746
|
items: |
|
747
|
type: string |
|
748
|
title: $nin |
|
749
|
description: The value to not match |
|
750
|
$not: |
|
751
|
oneOf: |
|
752
|
- type: string |
|
753
|
title: $not |
|
754
|
description: Filter by values not matching this parameter |
|
755
|
- type: object |
|
756
|
description: >- |
|
757
|
Filter by values not matching the conditions in this |
|
758
|
parameter. |
|
759
|
- type: array |
|
760
|
description: >- |
|
761
|
Filter by values not matching the values of this |
|
762
|
parameter. |
|
763
|
items: |
|
764
|
type: string |
|
765
|
title: $not |
|
766
|
description: The values to not match. |
|
767
|
$gt: |
|
768
|
type: string |
|
769
|
title: $gt |
|
770
|
description: >- |
|
771
|
Filter by values greater than this parameter. Useful for |
|
772
|
numbers and dates only. |
|
773
|
$gte: |
|
774
|
type: string |
|
775
|
title: $gte |
|
776
|
description: >- |
|
777
|
Filter by values greater than or equal to this parameter. |
|
778
|
Useful for numbers and dates only. |
|
779
|
$lt: |
|
780
|
type: string |
|
781
|
title: $lt |
|
782
|
description: >- |
|
783
|
Filter by values less than this parameter. Useful for |
|
784
|
numbers and dates only. |
|
785
|
$lte: |
|
786
|
type: string |
|
787
|
title: $lte |
|
788
|
description: >- |
|
789
|
Filter by values less than or equal to this parameter. |
|
790
|
Useful for numbers and dates only. |
|
791
|
$like: |
|
792
|
type: string |
|
793
|
title: $like |
|
794
|
description: Apply a `like` filter. Useful for strings only. |
|
795
|
$re: |
|
796
|
type: string |
|
797
|
title: $re |
|
798
|
description: Apply a regex filter. Useful for strings only. |
|
799
|
$ilike: |
|
800
|
type: string |
|
801
|
title: $ilike |
|
802
|
description: >- |
|
803
|
Apply a case-insensitive `like` filter. Useful for strings |
|
804
|
only. |
|
805
|
$fulltext: |
|
806
|
type: string |
|
807
|
title: $fulltext |
|
808
|
description: Filter to apply on full-text properties. |
|
809
|
$overlap: |
|
810
|
type: array |
|
811
|
description: >- |
|
812
|
Filter arrays that have overlapping values with this |
|
813
|
parameter. |
|
814
|
items: |
|
815
|
type: string |
|
816
|
title: $overlap |
|
817
|
description: The value to match. |
|
818
|
$contains: |
|
819
|
type: array |
|
820
|
description: >- |
|
821
|
Filter arrays that contain some of the values of this |
|
822
|
parameter. |
|
823
|
items: |
|
824
|
type: string |
|
825
|
title: $contains |
|
826
|
description: The values to match. |
|
827
|
$contained: |
|
828
|
type: array |
|
829
|
description: Filter arrays that contain all values of this parameter. |
|
830
|
items: |
|
831
|
type: string |
|
832
|
title: $contained |
|
833
|
description: The values to match. |
|
834
|
$exists: |
|
835
|
type: boolean |
|
836
|
title: $exists |
|
837
|
description: >- |
|
838
|
Filter by whether a value for this parameter exists (not |
|
839
|
`null`). |
|
840
|
- type: array |
|
841
|
description: Filter by values not matching those in this parameter. |
|
842
|
items: |
|
843
|
type: string |
|
844
|
title: $not |
|
845
|
description: The values to not match. |
|
846
|
$gt: |
|
847
|
type: string |
|
848
|
title: $gt |
|
849
|
description: >- |
|
850
|
Filter by values greater than this parameter. Useful for numbers |
|
851
|
and dates only. |
|
852
|
$gte: |
|
853
|
type: string |
|
854
|
title: $gte |
|
855
|
description: >- |
|
856
|
Filter by values greater than or equal to this parameter. Useful |
|
857
|
for numbers and dates only. |
|
858
|
$lt: |
|
859
|
type: string |
|
860
|
title: $lt |
|
861
|
description: >- |
|
862
|
Filter by values less than this parameter. Useful for numbers and |
|
863
|
dates only. |
|
864
|
$lte: |
|
865
|
type: string |
|
866
|
title: $lte |
|
867
|
description: >- |
|
868
|
Filter by values less than or equal to this parameter. Useful for |
|
869
|
numbers and dates only. |
|
870
|
$like: |
|
871
|
type: string |
|
872
|
title: $like |
|
873
|
description: Apply a `like` filter. Useful for strings only. |
|
874
|
$re: |
|
875
|
type: string |
|
876
|
title: $re |
|
877
|
description: Apply a regex filter. Useful for strings only. |
|
878
|
$ilike: |
|
879
|
type: string |
|
880
|
title: $ilike |
|
881
|
description: Apply a case-insensitive `like` filter. Useful for strings only. |
|
882
|
$fulltext: |
|
883
|
type: string |
|
884
|
title: $fulltext |
|
885
|
description: Filter to apply on full-text properties. |
|
886
|
$overlap: |
|
887
|
type: array |
|
888
|
description: Filter arrays that have overlapping values with this parameter. |
|
889
|
items: |
|
890
|
type: string |
|
891
|
title: $overlap |
|
892
|
description: The values to match. |
|
893
|
$contains: |
|
894
|
type: array |
|
895
|
description: Filter arrays that contain some of the values of this parameter. |
|
896
|
items: |
|
897
|
type: string |
|
898
|
title: $contains |
|
899
|
description: The values to match. |
|
900
|
$contained: |
|
901
|
type: array |
|
902
|
description: Filter arrays that contain all values of this parameter. |
|
903
|
items: |
|
904
|
type: string |
|
905
|
title: $contained |
|
906
|
description: The values to match. |
|
907
|
$exists: |
|
908
|
type: boolean |
|
909
|
title: $exists |
|
910
|
description: Filter by whether a value for this parameter exists (not `null`). |
|
911
|
title: updated_at |
|
912
|
- name: with_deleted |
|
913
|
in: query |
|
914
|
description: Whether to include deleted records in the result. |
|
915
|
required: false |
|
916
|
schema: |
|
917
|
type: boolean |
|
918
|
title: with_deleted |
|
919
|
description: Whether to include deleted records in the result. |
|
920
|
security: |
|
921
|
- api_token: [] |
|
922
|
- cookie_auth: [] |
|
923
|
- jwt_token: [] |
|
924
|
x-codeSamples: |
|
925
|
- lang: JavaScript |
|
926
|
label: JS SDK |
|
927
|
source: |
|
928
|
$ref: ../code_samples/JavaScript/admin_exchanges/get.js |
|
929
|
- lang: Shell |
|
930
|
label: cURL |
|
931
|
source: |
|
932
|
$ref: ../code_samples/Shell/admin_exchanges/get.sh |
|
933
|
tags: |
|
934
|
- Exchanges |
|
935
|
responses: |
|
936
|
'200': |
|
937
|
description: OK |
|
938
|
content: |
|
939
|
application/json: |
|
940
|
schema: |
|
941
|
allOf: |
|
942
|
- type: object |
|
943
|
description: The paginated list of exchanges. |
|
944
|
required: |
|
945
|
- limit |
|
946
|
- offset |
|
947
|
- count |
|
948
|
properties: |
|
949
|
limit: |
|
950
|
type: number |
|
951
|
title: limit |
|
952
|
description: The maximum number of items returned. |
|
953
|
offset: |
|
954
|
type: number |
|
955
|
title: offset |
|
956
|
description: >- |
|
957
|
The number of items skipped before retrieving the returned |
|
958
|
items. |
|
959
|
count: |
|
960
|
type: number |
|
961
|
title: count |
|
962
|
description: The total number of items. |
|
963
|
- type: object |
|
964
|
description: The paginated list of exchanges. |
|
965
|
required: |
|
966
|
- exchanges |
|
967
|
properties: |
|
968
|
exchanges: |
|
969
|
type: array |
|
970
|
description: The exchange's exchanges. |
|
971
|
items: |
|
972
|
$ref: ../components/schemas/AdminExchange.yaml |
|
973
|
'400': |
|
974
|
$ref: ../components/responses/400_error.yaml |
|
975
|
'401': |
|
976
|
$ref: ../components/responses/unauthorized.yaml |
|
977
|
'404': |
|
978
|
$ref: ../components/responses/not_found_error.yaml |
|
979
|
'409': |
|
980
|
$ref: ../components/responses/invalid_state_error.yaml |
|
981
|
'422': |
|
982
|
$ref: ../components/responses/invalid_request_error.yaml |
|
983
|
'500': |
|
984
|
$ref: ../components/responses/500_error.yaml |
|
985
|
post: |
|
986
|
operationId: PostExchanges |
|
987
|
summary: Create Exchange |
|
988
|
description: >- |
|
989
|
Create an exchange request. Its changes aren't applied on the order until |
|
990
|
the exchange is confirmed. |
|
991
|
x-authenticated: true |
|
992
|
parameters: |
|
993
|
- name: fields |
|
994
|
in: query |
|
995
|
description: >- |
|
996
|
Comma-separated fields that should be included in the returned data. if |
|
997
|
a field is prefixed with `+` it will be added to the default fields, |
|
998
|
using `-` will remove it from the default fields. without prefix it will |
|
999
|
replace the entire default fields. |
|
1000
|
required: false |
|
1001
|
schema: |
|
1002
|
type: string |
|
1003
|
title: fields |
|
1004
|
description: >- |
|
1005
|
Comma-separated fields that should be included in the returned data. |
|
1006
|
if a field is prefixed with `+` it will be added to the default |
|
1007
|
fields, using `-` will remove it from the default fields. without |
|
1008
|
prefix it will replace the entire default fields. |
|
1009
|
externalDocs: |
|
1010
|
url: '#select-fields-and-relations' |
|
1011
|
security: |
|
1012
|
- api_token: [] |
|
1013
|
- cookie_auth: [] |
|
1014
|
- jwt_token: [] |
|
1015
|
requestBody: |
|
1016
|
content: |
|
1017
|
application/json: |
|
1018
|
schema: |
|
1019
|
$ref: ../components/schemas/AdminCreateExchange.yaml |
|
1020
|
x-codeSamples: |
|
1021
|
- lang: JavaScript |
|
1022
|
label: JS SDK |
|
1023
|
source: |
|
1024
|
$ref: ../code_samples/JavaScript/admin_exchanges/post.js |
|
1025
|
- lang: Shell |
|
1026
|
label: cURL |
|
1027
|
source: |
|
1028
|
$ref: ../code_samples/Shell/admin_exchanges/post.sh |
|
1029
|
tags: |
|
1030
|
- Exchanges |
|
1031
|
responses: |
|
1032
|
'200': |
|
1033
|
description: OK |
|
1034
|
content: |
|
1035
|
application/json: |
|
1036
|
schema: |
|
1037
|
$ref: ../components/schemas/AdminExchangeOrderResponse.yaml |
|
1038
|
'400': |
|
1039
|
$ref: ../components/responses/400_error.yaml |
|
1040
|
'401': |
|
1041
|
$ref: ../components/responses/unauthorized.yaml |
|
1042
|
'404': |
|
1043
|
$ref: ../components/responses/not_found_error.yaml |
|
1044
|
'409': |
|
1045
|
$ref: ../components/responses/invalid_state_error.yaml |
|
1046
|
'422': |
|
1047
|
$ref: ../components/responses/invalid_request_error.yaml |
|
1048
|
'500': |
|
1049
|
$ref: ../components/responses/500_error.yaml |
|
1050
|
x-workflow: beginExchangeOrderWorkflow |
|
1051
|
x-events: [] |