1 get:
2 operationId: GetTaxProviders
3 summary: List Tax Providers
4 description: >-
5 Retrieve a list of tax providers installed in the Medusa application through
6 Tax Module Providers. The tax providers can be filtered by fields such as
7 `id`. The tax providers can also be sorted or paginated.
8 x-authenticated: true
9 parameters:
10 - name: fields
11 in: query
12 description: >-
13 Comma-separated fields that should be included in the returned data.
14
15 if a field is prefixed with `+` it will be added to the default fields,
16 using `-` will remove it from the default fields.
17
18 without prefix it will replace the entire default fields.
19 required: false
20 schema:
21 type: string
22 title: fields
23 description: >-
24 Comma-separated fields that should be included in the returned data.
25 If a field is prefixed with `+` it will be added to the default
26 fields, using `-` will remove it from the default fields. Without
27 prefix it will replace the entire default fields.
28 externalDocs:
29 url: '#select-fields-and-relations'
30 - name: offset
31 in: query
32 description: The number of items to skip when retrieving a list.
33 required: false
34 schema:
35 type: number
36 title: offset
37 description: The number of items to skip when retrieving a list.
38 externalDocs:
39 url: '#pagination'
40 - name: limit
41 in: query
42 description: Limit the number of items returned in the list.
43 required: false
44 schema:
45 type: number
46 title: limit
47 description: Limit the number of items returned in the list.
48 externalDocs:
49 url: '#pagination'
50 - name: order
51 in: query
52 description: >-
53 The field to sort the data by. By default, the sort order is ascending.
54 To change the order to descending, prefix the field name with `-`.
55 required: false
56 schema:
57 type: string
58 title: order
59 description: >-
60 The field to sort the data by. By default, the sort order is
61 ascending. To change the order to descending, prefix the field name
62 with `-`.
63 externalDocs:
64 url: '#pagination'
65 - name: id
66 in: query
67 required: false
68 schema:
69 oneOf:
70 - type: string
71 title: id
72 description: Filter by a tax provider's ID.
73 - type: array
74 description: Filter by tax provider IDs.
75 items:
76 type: string
77 title: id
78 description: A tax provider's ID.
79 - name: is_enabled
80 in: query
81 description: Filter by whether the tax provider is enabled.
82 required: false
83 schema:
84 type: boolean
85 title: is_enabled
86 description: Filter by whether the tax provider is enabled.
87 - name: $and
88 in: query
89 description: >-
90 Join query parameters with an AND condition. Each object's content is
91 the same type as the expected query parameters.
92 required: false
93 schema:
94 type: array
95 description: >-
96 Join query parameters with an AND condition. Each object's content is
97 the same type as the expected query parameters.
98 items:
99 type: object
100 title: $and
101 - name: $or
102 in: query
103 description: >-
104 Join query parameters with an OR condition. Each object's content is the
105 same type as the expected query parameters.
106 required: false
107 schema:
108 type: array
109 description: >-
110 Join query parameters with an OR condition. Each object's content is
111 the same type as the expected query parameters.
112 items:
113 type: object
114 title: $or
115 - name: with_deleted
116 in: query
117 description: Whether to include deleted records in the result.
118 required: false
119 schema:
120 type: boolean
121 title: with_deleted
122 description: Whether to include deleted records in the result.
123 security:
124 - api_token: []
125 - cookie_auth: []
126 - jwt_token: []
127 x-codeSamples:
128 - lang: JavaScript
129 label: JS SDK
130 source:
131 $ref: ../code_samples/JavaScript/admin_tax-providers/get.js
132 - lang: Shell
133 label: cURL
134 source:
135 $ref: ../code_samples/Shell/admin_tax-providers/get.sh
136 tags:
137 - Tax Providers
138 responses:
139 '200':
140 description: OK
141 content:
142 application/json:
143 schema:
144 allOf:
145 - type: object
146 description: The pagination details.
147 required:
148 - limit
149 - offset
150 - count
151 properties:
152 limit:
153 type: number
154 title: limit
155 description: The maximum number of items retrieved.
156 offset:
157 type: number
158 title: offset
159 description: >-
160 The number of items skipped before retrieving the returned
161 items.
162 count:
163 type: number
164 title: count
165 description: The total number of items available.
166 estimate_count:
167 type: number
168 title: estimate_count
169 description: >-
170 The estimated count retrieved from the PostgreSQL query
171 planner, which may be inaccurate.
172 x-featureFlag: index_engine
173 - type: object
174 description: The list of tax providers.
175 required:
176 - tax_providers
177 properties:
178 tax_providers:
179 type: array
180 description: The list of tax providers.
181 items:
182 $ref: ../components/schemas/AdminTaxProvider.yaml
183 '400':
184 $ref: ../components/responses/400_error.yaml
185 '401':
186 $ref: ../components/responses/unauthorized.yaml
187 '404':
188 $ref: ../components/responses/not_found_error.yaml
189 '409':
190 $ref: ../components/responses/invalid_state_error.yaml
191 '422':
192 $ref: ../components/responses/invalid_request_error.yaml
193 '500':
194 $ref: ../components/responses/500_error.yaml
195 x-since: 2.8.0