Raw
1 get:
2 operationId: GetTaxRegions
3 summary: List Tax Regions
4 description: >-
5 Retrieve a list of tax regions. The tax regions can be filtered by fields
6 such as `id`. The tax regions can also be sorted or paginated.
7 x-authenticated: true
8 parameters:
9 - name: fields
10 in: query
11 description: >-
12 Comma-separated fields that should be included in the returned data. if
13 a field is prefixed with `+` it will be added to the default fields,
14 using `-` will remove it from the default fields. without prefix it will
15 replace the entire default fields.
16 required: false
17 schema:
18 type: string
19 title: fields
20 description: >-
21 Comma-separated fields that should be included in the returned data.
22 if a field is prefixed with `+` it will be added to the default
23 fields, using `-` will remove it from the default fields. without
24 prefix it will replace the entire default fields.
25 externalDocs:
26 url: '#select-fields-and-relations'
27 - name: offset
28 in: query
29 description: The number of items to skip when retrieving a list.
30 required: false
31 schema:
32 type: number
33 title: offset
34 description: The number of items to skip when retrieving a list.
35 externalDocs:
36 url: '#pagination'
37 - name: limit
38 in: query
39 description: Limit the number of items returned in the list.
40 required: false
41 schema:
42 type: number
43 title: limit
44 description: Limit the number of items returned in the list.
45 externalDocs:
46 url: '#pagination'
47 - name: order
48 in: query
49 description: >-
50 The field to sort the data by. By default, the sort order is ascending.
51 To change the order to descending, prefix the field name with `-`.
52 required: false
53 schema:
54 type: string
55 title: order
56 description: >-
57 The field to sort the data by. By default, the sort order is
58 ascending. To change the order to descending, prefix the field name
59 with `-`.
60 - name: q
61 in: query
62 description: Search term to filter a tax region's searchable properties.
63 required: false
64 schema:
65 type: string
66 title: q
67 description: Search term to filter a tax region's searchable properties.
68 - name: id
69 in: query
70 required: false
71 schema:
72 oneOf:
73 - type: string
74 title: id
75 description: Filter by a tax region ID.
76 - type: array
77 description: Filter by tax region IDs.
78 items:
79 type: string
80 title: id
81 description: A tax region ID.
82 - name: country_code
83 in: query
84 required: false
85 schema:
86 oneOf:
87 - type: string
88 title: country_code
89 description: Filter by a country code.
90 - type: array
91 description: Filter by country codes.
92 items:
93 type: string
94 title: country_code
95 description: A country code.
96 - type: object
97 description: Apply filters on the currency code.
98 properties:
99 $eq:
100 type: string
101 description: Filter by an exact match.
102 $ne:
103 type: string
104 description: Filter by values not matching this parameter.
105 $in:
106 type: array
107 description: Filter by values in this array's items.
108 items:
109 type: string
110 $nin:
111 type: array
112 description: Filter by values not in this array's items.
113 items:
114 type: string
115 $like:
116 type: string
117 description: Apply a `like` filter. Useful for strings only.
118 $ilike:
119 type: string
120 description: >-
121 Apply a case-insensitive `like` filter. Useful for strings
122 only.
123 $re:
124 type: string
125 description: Apply a regex filter. Useful for strings only.
126 $contains:
127 type: array
128 description: >-
129 Filter arrays that contain some of the values of this
130 parameter.
131 items:
132 type: string
133 $gt:
134 type: string
135 description: >-
136 Filter by values greater than this parameter. Useful for
137 numbers and dates only.
138 $gte:
139 type: string
140 description: >-
141 Filter by values greater than or equal to this parameter.
142 Useful for numbers and dates only.
143 $lt:
144 type: string
145 description: >-
146 Filter by values less than this parameter. Useful for numbers
147 and dates only.
148 $lte:
149 type: string
150 description: >-
151 Filter by values less than or equal to this parameter. Useful
152 for numbers and dates only.
153 - name: province_code
154 in: query
155 required: false
156 schema:
157 oneOf:
158 - type: string
159 title: province_code
160 description: Filter by a ISO 3166-2 province code. Must be lower-case.
161 example: us-ca
162 externalDocs:
163 url: https://en.wikipedia.org/wiki/ISO_3166-2
164 description: Learn more about ISO 3166-2
165 - type: array
166 description: Filter by ISO 3166-2 province codes.
167 items:
168 type: string
169 title: province_code
170 description: A ISO 3166-2 province code.
171 example: us-ca
172 externalDocs:
173 url: https://en.wikipedia.org/wiki/ISO_3166-2
174 description: Learn more about ISO 3166-2
175 - type: object
176 description: Apply filters on the province code.
177 properties:
178 $eq:
179 type: string
180 description: Filter by an exact match.
181 $ne:
182 type: string
183 description: Filter by values not matching this parameter.
184 $in:
185 type: array
186 description: Filter by values in this array's items.
187 items:
188 type: string
189 $nin:
190 type: array
191 description: Filter by values not in this array's items.
192 items:
193 type: string
194 $like:
195 type: string
196 description: Apply a `like` filter. Useful for strings only.
197 $ilike:
198 type: string
199 description: >-
200 Apply a case-insensitive `like` filter. Useful for strings
201 only.
202 $re:
203 type: string
204 description: Apply a regex filter. Useful for strings only.
205 $contains:
206 type: array
207 description: >-
208 Filter arrays that contain some of the values of this
209 parameter.
210 items:
211 type: string
212 $gt:
213 type: string
214 description: >-
215 Filter by values greater than this parameter. Useful for
216 numbers and dates only.
217 $gte:
218 type: string
219 description: >-
220 Filter by values greater than or equal to this parameter.
221 Useful for numbers and dates only.
222 $lt:
223 type: string
224 description: >-
225 Filter by values less than this parameter. Useful for numbers
226 and dates only.
227 $lte:
228 type: string
229 description: >-
230 Filter by values less than or equal to this parameter. Useful
231 for numbers and dates only.
232 - name: parent_id
233 in: query
234 required: false
235 schema:
236 oneOf:
237 - type: string
238 title: parent_id
239 description: >-
240 Filter by the ID of a parent tax region to retrieve its child tax
241 regions.
242 - type: array
243 description: >-
244 Filter by the IDs of parent tax regions to retrieve their child
245 tax regions.
246 items:
247 type: string
248 title: parent_id
249 description: A tax region's ID.
250 - type: object
251 description: >-
252 Apply filters on the parent tax region's ID to retrieve its child
253 tax regions.
254 properties:
255 $eq:
256 type: string
257 description: Filter by an exact match.
258 $ne:
259 type: string
260 description: Filter by values not matching this parameter.
261 $in:
262 type: array
263 description: Filter by values in this array's items.
264 items:
265 type: string
266 $nin:
267 type: array
268 description: Filter by values not in this array's items.
269 items:
270 type: string
271 $like:
272 type: string
273 description: Apply a `like` filter. Useful for strings only.
274 $ilike:
275 type: string
276 description: >-
277 Apply a case-insensitive `like` filter. Useful for strings
278 only.
279 $re:
280 type: string
281 description: Apply a regex filter. Useful for strings only.
282 $contains:
283 type: array
284 description: >-
285 Filter arrays that contain some of the values of this
286 parameter.
287 items:
288 type: string
289 $gt:
290 type: string
291 description: >-
292 Filter by values greater than this parameter. Useful for
293 numbers and dates only.
294 $gte:
295 type: string
296 description: >-
297 Filter by values greater than or equal to this parameter.
298 Useful for numbers and dates only.
299 $lt:
300 type: string
301 description: >-
302 Filter by values less than this parameter. Useful for numbers
303 and dates only.
304 $lte:
305 type: string
306 description: >-
307 Filter by values less than or equal to this parameter. Useful
308 for numbers and dates only.
309 - name: created_by
310 in: query
311 required: false
312 schema:
313 oneOf:
314 - type: string
315 title: created_by
316 description: >-
317 Filter by the ID of the user to retrieve the tax regions they
318 created.
319 - type: array
320 description: Filter by user IDs to retrieve their tax regions they created.
321 items:
322 type: string
323 title: created_by
324 description: A user ID.
325 - name: created_at
326 in: query
327 description: Filter by a tax region's creation date.
328 required: false
329 schema:
330 oneOf:
331 - type: string
332 title: created_at
333 description: Filter by a tax region's creation date.
334 - type: object
335 description: Apply filters on the tax region's creation date.
336 properties:
337 $and:
338 type: array
339 description: >-
340 Join query parameters with an AND condition. Each object's
341 content is the same type as the expected query parameters.
342 items:
343 type: object
344 title: $and
345 $or:
346 type: array
347 description: >-
348 Join query parameters with an OR condition. Each object's
349 content is the same type as the expected query parameters.
350 items:
351 type: object
352 title: $or
353 $eq:
354 oneOf:
355 - type: string
356 title: $eq
357 description: Filter by an exact match.
358 - type: array
359 description: Filter by an exact match.
360 items:
361 type: string
362 title: $eq
363 description: Filter by an exact match.
364 $ne:
365 type: string
366 title: $ne
367 description: Filter by values not equal to this parameter.
368 $in:
369 type: array
370 description: Filter by values in this array.
371 items:
372 type: string
373 title: $in
374 description: Filter by values in this array.
375 $nin:
376 type: array
377 description: Filter by values not in this array.
378 items:
379 type: string
380 title: $nin
381 description: Filter by values not in this array.
382 $not:
383 oneOf:
384 - type: string
385 title: $not
386 description: >-
387 Filter by values not matching the conditions in this
388 parameter.
389 - type: object
390 description: >-
391 Filter by values not matching the conditions in this
392 parameter.
393 properties:
394 $and:
395 type: array
396 description: >-
397 Join query parameters with an AND condition. Each
398 object's content is the same type as the expected
399 query parameters.
400 items:
401 type: object
402 title: $and
403 $or:
404 type: array
405 description: >-
406 Join query parameters with an OR condition. Each
407 object's content is the same type as the expected
408 query parameters.
409 items:
410 type: object
411 title: $or
412 $eq:
413 oneOf:
414 - type: string
415 title: $eq
416 description: Filter by an exact match.
417 - type: array
418 description: Filter by an exact match.
419 items:
420 type: string
421 title: $eq
422 description: Filter by an exact match.
423 $ne:
424 type: string
425 title: $ne
426 description: Filter by values not equal to this parameter.
427 $in:
428 type: array
429 description: Filter by values in this array.
430 items:
431 type: string
432 title: $in
433 description: Filter by values in this array.
434 $nin:
435 type: array
436 description: Filter by values not in this array.
437 items:
438 type: string
439 title: $nin
440 description: Filter by values not in this array.
441 $not:
442 oneOf:
443 - type: string
444 title: $not
445 description: >-
446 Filter by values not matching the conditions in
447 this parameter.
448 - type: object
449 description: >-
450 Filter by values not matching the conditions in
451 this parameter.
452 - type: array
453 description: >-
454 Filter by values not matching the conditions in
455 this parameter.
456 items:
457 type: string
458 title: $not
459 description: >-
460 Filter by values not matching the conditions in
461 this parameter.
462 $gt:
463 type: string
464 title: $gt
465 description: >-
466 Filter by values greater than this parameter. Useful
467 for numbers and dates only.
468 $gte:
469 type: string
470 title: $gte
471 description: >-
472 Filter by values greater than or equal to this
473 parameter. Useful for numbers and dates only.
474 $lt:
475 type: string
476 title: $lt
477 description: >-
478 Filter by values less than this parameter. Useful for
479 numbers and dates only.
480 $lte:
481 type: string
482 title: $lte
483 description: >-
484 Filter by values less than or equal to this parameter.
485 Useful for numbers and dates only.
486 $like:
487 type: string
488 title: $like
489 description: Apply a `like` filter. Useful for strings only.
490 $re:
491 type: string
492 title: $re
493 description: Apply a regex filter. Useful for strings only.
494 $ilike:
495 type: string
496 title: $ilike
497 description: >-
498 Apply a case-insensitive `like` filter. Useful for
499 strings only.
500 $fulltext:
501 type: string
502 title: $fulltext
503 description: Filter to apply on full-text properties.
504 $overlap:
505 type: array
506 description: >-
507 Filter arrays that have overlapping values with this
508 parameter.
509 items:
510 type: string
511 title: $overlap
512 description: >-
513 Filter arrays that have overlapping values with this
514 parameter.
515 $contains:
516 type: array
517 description: >-
518 Filter arrays that contain some of the values of this
519 parameter.
520 items:
521 type: string
522 title: $contains
523 description: >-
524 Filter arrays that contain some of the values of
525 this parameter.
526 $contained:
527 type: array
528 description: >-
529 Filter arrays that contain all values of this
530 parameter.
531 items:
532 type: string
533 title: $contained
534 description: >-
535 Filter arrays that contain all values of this
536 parameter.
537 $exists:
538 type: boolean
539 title: $exists
540 description: >-
541 Filter by whether a value for this parameter exists
542 (not `null`).
543 - type: array
544 description: >-
545 Filter by values not matching the conditions in this
546 parameter.
547 items:
548 type: string
549 title: $not
550 description: >-
551 Filter by values not matching the conditions in this
552 parameter.
553 $gt:
554 type: string
555 title: $gt
556 description: >-
557 Filter by values greater than this parameter. Useful for
558 numbers and dates only.
559 $gte:
560 type: string
561 title: $gte
562 description: >-
563 Filter by values greater than or equal to this parameter.
564 Useful for numbers and dates only.
565 $lt:
566 type: string
567 title: $lt
568 description: >-
569 Filter by values less than this parameter. Useful for numbers
570 and dates only.
571 $lte:
572 type: string
573 title: $lte
574 description: >-
575 Filter by values less than or equal to this parameter. Useful
576 for numbers and dates only.
577 $like:
578 type: string
579 title: $like
580 description: Apply a `like` filter. Useful for strings only.
581 $re:
582 type: string
583 title: $re
584 description: Apply a regex filter. Useful for strings only.
585 $ilike:
586 type: string
587 title: $ilike
588 description: >-
589 Apply a case-insensitive `like` filter. Useful for strings
590 only.
591 $fulltext:
592 type: string
593 title: $fulltext
594 description: Filter to apply on full-text properties.
595 $overlap:
596 type: array
597 description: >-
598 Filter arrays that have overlapping values with this
599 parameter.
600 items:
601 type: string
602 title: $overlap
603 description: >-
604 Filter arrays that have overlapping values with this
605 parameter.
606 $contains:
607 type: array
608 description: >-
609 Filter arrays that contain some of the values of this
610 parameter.
611 items:
612 type: string
613 title: $contains
614 description: >-
615 Filter arrays that contain some of the values of this
616 parameter.
617 $contained:
618 type: array
619 description: Filter arrays that contain all values of this parameter.
620 items:
621 type: string
622 title: $contained
623 description: Filter arrays that contain all values of this parameter.
624 $exists:
625 type: boolean
626 title: $exists
627 description: >-
628 Filter by whether a value for this parameter exists (not
629 `null`).
630 - name: updated_at
631 in: query
632 description: Filter by a tax region's update date.
633 required: false
634 schema:
635 oneOf:
636 - type: string
637 title: updated_at
638 description: Filter by a tax region's update date.
639 - type: object
640 description: Apply filters on the tax region's update date.
641 properties:
642 $and:
643 type: array
644 description: >-
645 Join query parameters with an AND condition. Each object's
646 content is the same type as the expected query parameters.
647 items:
648 type: object
649 title: $and
650 $or:
651 type: array
652 description: >-
653 Join query parameters with an OR condition. Each object's
654 content is the same type as the expected query parameters.
655 items:
656 type: object
657 title: $or
658 $eq:
659 oneOf:
660 - type: string
661 title: $eq
662 description: Filter by an exact match.
663 - type: array
664 description: Filter by an exact match.
665 items:
666 type: string
667 title: $eq
668 description: Filter by an exact match.
669 $ne:
670 type: string
671 title: $ne
672 description: Filter by values not equal to this parameter.
673 $in:
674 type: array
675 description: Filter by values in this array.
676 items:
677 type: string
678 title: $in
679 description: Filter by values in this array.
680 $nin:
681 type: array
682 description: Filter by values not in this array.
683 items:
684 type: string
685 title: $nin
686 description: Filter by values not in this array.
687 $not:
688 oneOf:
689 - type: string
690 title: $not
691 description: >-
692 Filter by values not matching the conditions in this
693 parameter.
694 - type: object
695 description: >-
696 Filter by values not matching the conditions in this
697 parameter.
698 properties:
699 $and:
700 type: array
701 description: >-
702 Join query parameters with an AND condition. Each
703 object's content is the same type as the expected
704 query parameters.
705 items:
706 type: object
707 title: $and
708 $or:
709 type: array
710 description: >-
711 Join query parameters with an OR condition. Each
712 object's content is the same type as the expected
713 query parameters.
714 items:
715 type: object
716 title: $or
717 $eq:
718 oneOf:
719 - type: string
720 title: $eq
721 description: Filter by an exact match.
722 - type: array
723 description: Filter by an exact match.
724 items:
725 type: string
726 title: $eq
727 description: Filter by an exact match.
728 $ne:
729 type: string
730 title: $ne
731 description: Filter by values not equal to this parameter.
732 $in:
733 type: array
734 description: Filter by values in this array.
735 items:
736 type: string
737 title: $in
738 description: Filter by values in this array.
739 $nin:
740 type: array
741 description: Filter by values not in this array.
742 items:
743 type: string
744 title: $nin
745 description: Filter by values not in this array.
746 $not:
747 oneOf:
748 - type: string
749 title: $not
750 description: >-
751 Filter by values not matching the conditions in
752 this parameter.
753 - type: object
754 description: >-
755 Filter by values not matching the conditions in
756 this parameter.
757 - type: array
758 description: >-
759 Filter by values not matching the conditions in
760 this parameter.
761 items:
762 type: string
763 title: $not
764 description: >-
765 Filter by values not matching the conditions in
766 this parameter.
767 $gt:
768 type: string
769 title: $gt
770 description: >-
771 Filter by values greater than this parameter. Useful
772 for numbers and dates only.
773 $gte:
774 type: string
775 title: $gte
776 description: >-
777 Filter by values greater than or equal to this
778 parameter. 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
804 strings 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: >-
818 Filter arrays that have overlapping values with this
819 parameter.
820 $contains:
821 type: array
822 description: >-
823 Filter arrays that contain some of the values of this
824 parameter.
825 items:
826 type: string
827 title: $contains
828 description: >-
829 Filter arrays that contain some of the values of
830 this parameter.
831 $contained:
832 type: array
833 description: >-
834 Filter arrays that contain all values of this
835 parameter.
836 items:
837 type: string
838 title: $contained
839 description: >-
840 Filter arrays that contain all values of this
841 parameter.
842 $exists:
843 type: boolean
844 title: $exists
845 description: >-
846 Filter by whether a value for this parameter exists
847 (not `null`).
848 - type: array
849 description: >-
850 Filter by values not matching the conditions in this
851 parameter.
852 items:
853 type: string
854 title: $not
855 description: >-
856 Filter by values not matching the conditions in this
857 parameter.
858 $gt:
859 type: string
860 title: $gt
861 description: >-
862 Filter by values greater than this parameter. Useful for
863 numbers and dates only.
864 $gte:
865 type: string
866 title: $gte
867 description: >-
868 Filter by values greater than or equal to this parameter.
869 Useful for numbers and dates only.
870 $lt:
871 type: string
872 title: $lt
873 description: >-
874 Filter by values less than this parameter. Useful for numbers
875 and dates only.
876 $lte:
877 type: string
878 title: $lte
879 description: >-
880 Filter by values less than or equal to this parameter. Useful
881 for numbers and dates only.
882 $like:
883 type: string
884 title: $like
885 description: Apply a `like` filter. Useful for strings only.
886 $re:
887 type: string
888 title: $re
889 description: Apply a regex filter. Useful for strings only.
890 $ilike:
891 type: string
892 title: $ilike
893 description: >-
894 Apply a case-insensitive `like` filter. Useful for strings
895 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: >-
903 Filter arrays that have overlapping values with this
904 parameter.
905 items:
906 type: string
907 title: $overlap
908 description: >-
909 Filter arrays that have overlapping values with this
910 parameter.
911 $contains:
912 type: array
913 description: >-
914 Filter arrays that contain some of the values of this
915 parameter.
916 items:
917 type: string
918 title: $contains
919 description: >-
920 Filter arrays that contain some of the values of this
921 parameter.
922 $contained:
923 type: array
924 description: Filter arrays that contain all values of this parameter.
925 items:
926 type: string
927 title: $contained
928 description: Filter arrays that contain all values of this parameter.
929 $exists:
930 type: boolean
931 title: $exists
932 description: >-
933 Filter by whether a value for this parameter exists (not
934 `null`).
935 - name: deleted_at
936 in: query
937 description: Filter by a tax region's deletion date.
938 required: false
939 schema:
940 oneOf:
941 - type: string
942 title: deleted_at
943 description: Filter by a tax region's deletion date.
944 - type: object
945 description: Apply filters on the tax region's deletion date.
946 properties:
947 $and:
948 type: array
949 description: >-
950 Join query parameters with an AND condition. Each object's
951 content is the same type as the expected query parameters.
952 items:
953 type: object
954 title: $and
955 $or:
956 type: array
957 description: >-
958 Join query parameters with an OR condition. Each object's
959 content is the same type as the expected query parameters.
960 items:
961 type: object
962 title: $or
963 $eq:
964 oneOf:
965 - type: string
966 title: $eq
967 description: Filter by an exact match.
968 - type: array
969 description: Filter by an exact match.
970 items:
971 type: string
972 title: $eq
973 description: Filter by an exact match.
974 $ne:
975 type: string
976 title: $ne
977 description: Filter by values not equal to this parameter.
978 $in:
979 type: array
980 description: Filter by values in this array.
981 items:
982 type: string
983 title: $in
984 description: Filter by values in this array.
985 $nin:
986 type: array
987 description: Filter by values not in this array.
988 items:
989 type: string
990 title: $nin
991 description: Filter by values not in this array.
992 $not:
993 oneOf:
994 - type: string
995 title: $not
996 description: >-
997 Filter by values not matching the conditions in this
998 parameter.
999 - type: object
1000 description: >-
1001 Filter by values not matching the conditions in this
1002 parameter.
1003 properties:
1004 $and:
1005 type: array
1006 description: >-
1007 Join query parameters with an AND condition. Each
1008 object's content is the same type as the expected
1009 query parameters.
1010 items:
1011 type: object
1012 title: $and
1013 $or:
1014 type: array
1015 description: >-
1016 Join query parameters with an OR condition. Each
1017 object's content is the same type as the expected
1018 query parameters.
1019 items:
1020 type: object
1021 title: $or
1022 $eq:
1023 oneOf:
1024 - type: string
1025 title: $eq
1026 description: Filter by an exact match.
1027 - type: array
1028 description: Filter by an exact match.
1029 items:
1030 type: string
1031 title: $eq
1032 description: Filter by an exact match.
1033 $ne:
1034 type: string
1035 title: $ne
1036 description: Filter by values not equal to this parameter.
1037 $in:
1038 type: array
1039 description: Filter by values in this array.
1040 items:
1041 type: string
1042 title: $in
1043 description: Filter by values in this array.
1044 $nin:
1045 type: array
1046 description: Filter by values not in this array.
1047 items:
1048 type: string
1049 title: $nin
1050 description: Filter by values not in this array.
1051 $not:
1052 oneOf:
1053 - type: string
1054 title: $not
1055 description: >-
1056 Filter by values not matching the conditions in
1057 this parameter.
1058 - type: object
1059 description: >-
1060 Filter by values not matching the conditions in
1061 this parameter.
1062 - type: array
1063 description: >-
1064 Filter by values not matching the conditions in
1065 this parameter.
1066 items:
1067 type: string
1068 title: $not
1069 description: >-
1070 Filter by values not matching the conditions in
1071 this parameter.
1072 $gt:
1073 type: string
1074 title: $gt
1075 description: >-
1076 Filter by values greater than this parameter. Useful
1077 for numbers and dates only.
1078 $gte:
1079 type: string
1080 title: $gte
1081 description: >-
1082 Filter by values greater than or equal to this
1083 parameter. Useful for numbers and dates only.
1084 $lt:
1085 type: string
1086 title: $lt
1087 description: >-
1088 Filter by values less than this parameter. Useful for
1089 numbers and dates only.
1090 $lte:
1091 type: string
1092 title: $lte
1093 description: >-
1094 Filter by values less than or equal to this parameter.
1095 Useful for numbers and dates only.
1096 $like:
1097 type: string
1098 title: $like
1099 description: Apply a `like` filter. Useful for strings only.
1100 $re:
1101 type: string
1102 title: $re
1103 description: Apply a regex filter. Useful for strings only.
1104 $ilike:
1105 type: string
1106 title: $ilike
1107 description: >-
1108 Apply a case-insensitive `like` filter. Useful for
1109 strings only.
1110 $fulltext:
1111 type: string
1112 title: $fulltext
1113 description: Filter to apply on full-text properties.
1114 $overlap:
1115 type: array
1116 description: >-
1117 Filter arrays that have overlapping values with this
1118 parameter.
1119 items:
1120 type: string
1121 title: $overlap
1122 description: >-
1123 Filter arrays that have overlapping values with this
1124 parameter.
1125 $contains:
1126 type: array
1127 description: >-
1128 Filter arrays that contain some of the values of this
1129 parameter.
1130 items:
1131 type: string
1132 title: $contains
1133 description: >-
1134 Filter arrays that contain some of the values of
1135 this parameter.
1136 $contained:
1137 type: array
1138 description: >-
1139 Filter arrays that contain all values of this
1140 parameter.
1141 items:
1142 type: string
1143 title: $contained
1144 description: >-
1145 Filter arrays that contain all values of this
1146 parameter.
1147 $exists:
1148 type: boolean
1149 title: $exists
1150 description: >-
1151 Filter by whether a value for this parameter exists
1152 (not `null`).
1153 - type: array
1154 description: >-
1155 Filter by values not matching the conditions in this
1156 parameter.
1157 items:
1158 type: string
1159 title: $not
1160 description: >-
1161 Filter by values not matching the conditions in this
1162 parameter.
1163 $gt:
1164 type: string
1165 title: $gt
1166 description: >-
1167 Filter by values greater than this parameter. Useful for
1168 numbers and dates only.
1169 $gte:
1170 type: string
1171 title: $gte
1172 description: >-
1173 Filter by values greater than or equal to this parameter.
1174 Useful for numbers and dates only.
1175 $lt:
1176 type: string
1177 title: $lt
1178 description: >-
1179 Filter by values less than this parameter. Useful for numbers
1180 and dates only.
1181 $lte:
1182 type: string
1183 title: $lte
1184 description: >-
1185 Filter by values less than or equal to this parameter. Useful
1186 for numbers and dates only.
1187 $like:
1188 type: string
1189 title: $like
1190 description: Apply a `like` filter. Useful for strings only.
1191 $re:
1192 type: string
1193 title: $re
1194 description: Apply a regex filter. Useful for strings only.
1195 $ilike:
1196 type: string
1197 title: $ilike
1198 description: >-
1199 Apply a case-insensitive `like` filter. Useful for strings
1200 only.
1201 $fulltext:
1202 type: string
1203 title: $fulltext
1204 description: Filter to apply on full-text properties.
1205 $overlap:
1206 type: array
1207 description: >-
1208 Filter arrays that have overlapping values with this
1209 parameter.
1210 items:
1211 type: string
1212 title: $overlap
1213 description: >-
1214 Filter arrays that have overlapping values with this
1215 parameter.
1216 $contains:
1217 type: array
1218 description: >-
1219 Filter arrays that contain some of the values of this
1220 parameter.
1221 items:
1222 type: string
1223 title: $contains
1224 description: >-
1225 Filter arrays that contain some of the values of this
1226 parameter.
1227 $contained:
1228 type: array
1229 description: Filter arrays that contain all values of this parameter.
1230 items:
1231 type: string
1232 title: $contained
1233 description: Filter arrays that contain all values of this parameter.
1234 $exists:
1235 type: boolean
1236 title: $exists
1237 description: >-
1238 Filter by whether a value for this parameter exists (not
1239 `null`).
1240 - name: $and
1241 in: query
1242 required: false
1243 schema:
1244 type: array
1245 description: >-
1246 Join query parameters with an AND condition. Each object's content is
1247 the same type as the expected query parameters.
1248 items:
1249 type: object
1250 title: $and
1251 - name: $or
1252 in: query
1253 required: false
1254 schema:
1255 type: array
1256 description: >-
1257 Join query parameters with an OR condition. Each object's content is
1258 the same type as the expected query parameters.
1259 items:
1260 type: object
1261 title: $or
1262 - name: with_deleted
1263 in: query
1264 description: Whether to include deleted records in the result.
1265 required: false
1266 schema:
1267 type: boolean
1268 title: with_deleted
1269 description: Whether to include deleted records in the result.
1270 security:
1271 - api_token: []
1272 - cookie_auth: []
1273 - jwt_token: []
1274 x-codeSamples:
1275 - lang: JavaScript
1276 label: JS SDK
1277 source:
1278 $ref: ../code_samples/JavaScript/admin_tax-regions/get.js
1279 - lang: Shell
1280 label: cURL
1281 source:
1282 $ref: ../code_samples/Shell/admin_tax-regions/get.sh
1283 tags:
1284 - Tax Regions
1285 responses:
1286 '200':
1287 description: OK
1288 content:
1289 application/json:
1290 schema:
1291 allOf:
1292 - type: object
1293 description: The paginated list of tax regions.
1294 required:
1295 - limit
1296 - offset
1297 - count
1298 properties:
1299 limit:
1300 type: number
1301 title: limit
1302 description: The maximum number of items returned.
1303 offset:
1304 type: number
1305 title: offset
1306 description: >-
1307 The number of items skipped before retrieving the returned
1308 items.
1309 count:
1310 type: number
1311 title: count
1312 description: The total number of items.
1313 - type: object
1314 description: The paginated list of tax regions.
1315 required:
1316 - tax_regions
1317 properties:
1318 tax_regions:
1319 type: array
1320 description: The list of tax regions.
1321 items:
1322 type: object
1323 '400':
1324 $ref: ../components/responses/400_error.yaml
1325 '401':
1326 $ref: ../components/responses/unauthorized.yaml
1327 '404':
1328 $ref: ../components/responses/not_found_error.yaml
1329 '409':
1330 $ref: ../components/responses/invalid_state_error.yaml
1331 '422':
1332 $ref: ../components/responses/invalid_request_error.yaml
1333 '500':
1334 $ref: ../components/responses/500_error.yaml
1335 post:
1336 operationId: PostTaxRegions
1337 summary: Create Tax Region
1338 description: Create a tax region.
1339 x-authenticated: true
1340 parameters:
1341 - name: fields
1342 in: query
1343 description: >-
1344 Comma-separated fields that should be included in the returned data. if
1345 a field is prefixed with `+` it will be added to the default fields,
1346 using `-` will remove it from the default fields. without prefix it will
1347 replace the entire default fields.
1348 required: false
1349 schema:
1350 type: string
1351 title: fields
1352 description: >-
1353 Comma-separated fields that should be included in the returned data.
1354 if a field is prefixed with `+` it will be added to the default
1355 fields, using `-` will remove it from the default fields. without
1356 prefix it will replace the entire default fields.
1357 externalDocs:
1358 url: '#select-fields-and-relations'
1359 security:
1360 - api_token: []
1361 - cookie_auth: []
1362 - jwt_token: []
1363 requestBody:
1364 content:
1365 application/json:
1366 schema:
1367 $ref: ../components/schemas/AdminCreateTaxRegion.yaml
1368 x-codeSamples:
1369 - lang: JavaScript
1370 label: JS SDK
1371 source:
1372 $ref: ../code_samples/JavaScript/admin_tax-regions/post.js
1373 - lang: Shell
1374 label: cURL
1375 source:
1376 $ref: ../code_samples/Shell/admin_tax-regions/post.sh
1377 tags:
1378 - Tax Regions
1379 responses:
1380 '200':
1381 description: OK
1382 content:
1383 application/json:
1384 schema:
1385 $ref: ../components/schemas/AdminTaxRegionResponse.yaml
1386 '400':
1387 $ref: ../components/responses/400_error.yaml
1388 '401':
1389 $ref: ../components/responses/unauthorized.yaml
1390 '404':
1391 $ref: ../components/responses/not_found_error.yaml
1392 '409':
1393 $ref: ../components/responses/invalid_state_error.yaml
1394 '422':
1395 $ref: ../components/responses/invalid_request_error.yaml
1396 '500':
1397 $ref: ../components/responses/500_error.yaml
1398 x-workflow: createTaxRegionsWorkflow
1399 x-events: []