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