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