Raw
1 get:
2 operationId: GetTaxRegionsId
3 summary: Get a Tax Region
4 description: >-
5 Retrieve a tax region by its ID. You can expand the tax region's relations
6 or select the fields that should be returned.
7 x-authenticated: true
8 parameters:
9 - name: id
10 in: path
11 description: The tax region's ID.
12 required: true
13 schema:
14 type: string
15 - name: fields
16 in: query
17 description: >-
18 Comma-separated fields that should be included in the returned data. if
19 a field is prefixed with `+` it will be added to the default fields,
20 using `-` will remove it from the default fields. without prefix it will
21 replace the entire default fields.
22 required: false
23 schema:
24 type: string
25 title: fields
26 description: >-
27 Comma-separated fields that should be included in the returned data.
28 if a field is prefixed with `+` it will be added to the default
29 fields, using `-` will remove it from the default fields. without
30 prefix it will replace the entire default fields.
31 externalDocs:
32 url: '#select-fields-and-relations'
33 security:
34 - api_token: []
35 - cookie_auth: []
36 - jwt_token: []
37 x-codeSamples:
38 - lang: JavaScript
39 label: JS SDK
40 source:
41 $ref: ../code_samples/JavaScript/admin_tax-regions_{id}/get.js
42 - lang: Shell
43 label: cURL
44 source:
45 $ref: ../code_samples/Shell/admin_tax-regions_{id}/get.sh
46 tags:
47 - Tax Regions
48 responses:
49 '200':
50 description: OK
51 content:
52 application/json:
53 schema:
54 $ref: ../components/schemas/AdminTaxRegionResponse.yaml
55 '400':
56 $ref: ../components/responses/400_error.yaml
57 '401':
58 $ref: ../components/responses/unauthorized.yaml
59 '404':
60 $ref: ../components/responses/not_found_error.yaml
61 '409':
62 $ref: ../components/responses/invalid_state_error.yaml
63 '422':
64 $ref: ../components/responses/invalid_request_error.yaml
65 '500':
66 $ref: ../components/responses/500_error.yaml
67 post:
68 operationId: PostTaxRegionsId
69 summary: Update a Tax Region
70 description: Update a tax region's details.
71 x-authenticated: true
72 parameters:
73 - name: id
74 in: path
75 description: The tax region's ID.
76 required: true
77 schema:
78 type: string
79 - name: fields
80 in: query
81 description: >-
82 Comma-separated fields that should be included in the returned data.
83
84 if a field is prefixed with `+` it will be added to the default fields,
85 using `-` will remove it from the default fields.
86
87 without prefix it will replace the entire default fields.
88 required: false
89 schema:
90 type: string
91 title: fields
92 description: >-
93 Comma-separated fields that should be included in the returned data.
94 If a field is prefixed with `+` it will be added to the default
95 fields, using `-` will remove it from the default fields. Without
96 prefix it will replace the entire default fields.
97 externalDocs:
98 url: '#select-fields-and-relations'
99 security:
100 - api_token: []
101 - cookie_auth: []
102 - jwt_token: []
103 requestBody:
104 content:
105 application/json:
106 schema:
107 $ref: ../components/schemas/AdminUpdateTaxRegion.yaml
108 x-codeSamples:
109 - lang: JavaScript
110 label: JS SDK
111 source:
112 $ref: ../code_samples/JavaScript/admin_tax-regions_{id}/post.js
113 - lang: Shell
114 label: cURL
115 source:
116 $ref: ../code_samples/Shell/admin_tax-regions_{id}/post.sh
117 tags:
118 - Tax Regions
119 responses:
120 '200':
121 description: OK
122 content:
123 application/json:
124 schema:
125 $ref: ../components/schemas/AdminTaxRegionResponse.yaml
126 '400':
127 $ref: ../components/responses/400_error.yaml
128 '401':
129 $ref: ../components/responses/unauthorized.yaml
130 '404':
131 $ref: ../components/responses/not_found_error.yaml
132 '409':
133 $ref: ../components/responses/invalid_state_error.yaml
134 '422':
135 $ref: ../components/responses/invalid_request_error.yaml
136 '500':
137 $ref: ../components/responses/500_error.yaml
138 x-workflow: updateTaxRegionsWorkflow
139 x-events: []
140 delete:
141 operationId: DeleteTaxRegionsId
142 summary: Delete a Tax Region
143 description: Delete a tax region.
144 x-authenticated: true
145 parameters:
146 - name: id
147 in: path
148 description: The tax region's ID.
149 required: true
150 schema:
151 type: string
152 security:
153 - api_token: []
154 - cookie_auth: []
155 - jwt_token: []
156 x-codeSamples:
157 - lang: JavaScript
158 label: JS SDK
159 source:
160 $ref: ../code_samples/JavaScript/admin_tax-regions_{id}/delete.js
161 - lang: Shell
162 label: cURL
163 source:
164 $ref: ../code_samples/Shell/admin_tax-regions_{id}/delete.sh
165 tags:
166 - Tax Regions
167 responses:
168 '200':
169 description: OK
170 content:
171 application/json:
172 schema:
173 $ref: ../components/schemas/AdminTaxRegionDeleteResponse.yaml
174 '400':
175 $ref: ../components/responses/400_error.yaml
176 '401':
177 $ref: ../components/responses/unauthorized.yaml
178 '404':
179 $ref: ../components/responses/not_found_error.yaml
180 '409':
181 $ref: ../components/responses/invalid_state_error.yaml
182 '422':
183 $ref: ../components/responses/invalid_request_error.yaml
184 '500':
185 $ref: ../components/responses/500_error.yaml
186 x-workflow: deleteTaxRegionsWorkflow
187 x-events: []