1 post:
2 operationId: PostTaxRatesIdRules
3 summary: Create Tax Rule for a Rate
4 x-sidebar-summary: Create Tax Rule
5 description: Create a tax rule for a rate.
6 x-authenticated: true
7 parameters:
8 - name: id
9 in: path
10 description: The tax rate's ID.
11 required: true
12 schema:
13 type: string
14 - name: fields
15 in: query
16 description: >-
17 Comma-separated fields that should be included in the returned data. if
18 a field is prefixed with `+` it will be added to the default fields,
19 using `-` will remove it from the default fields. without prefix it will
20 replace the entire default fields.
21 required: false
22 schema:
23 type: string
24 title: fields
25 description: >-
26 Comma-separated fields that should be included in the returned data.
27 if a field is prefixed with `+` it will be added to the default
28 fields, using `-` will remove it from the default fields. without
29 prefix it will replace the entire default fields.
30 externalDocs:
31 url: '#select-fields-and-relations'
32 security:
33 - api_token: []
34 - cookie_auth: []
35 - jwt_token: []
36 requestBody:
37 content:
38 application/json:
39 schema:
40 $ref: ../components/schemas/AdminCreateTaxRateRule.yaml
41 x-codeSamples:
42 - lang: Shell
43 label: cURL
44 source:
45 $ref: ../code_samples/Shell/admin_tax-rates_{id}_rules/post.sh
46 tags:
47 - Tax Rates
48 responses:
49 '200':
50 description: OK
51 content:
52 application/json:
53 schema:
54 $ref: ../components/schemas/AdminTaxRateResponse.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 x-workflow: createTaxRateRulesWorkflow
68 x-events: []