|
1
|
type: object |
|
2
|
description: The tax rate's details. |
|
3
|
x-schemaName: AdminCreateTaxRate |
|
4
|
required: |
|
5
|
- name |
|
6
|
- tax_region_id |
|
7
|
- code |
|
8
|
properties: |
|
9
|
name: |
|
10
|
type: string |
|
11
|
title: name |
|
12
|
description: The tax rate's name. |
|
13
|
example: VAT |
|
14
|
tax_region_id: |
|
15
|
type: string |
|
16
|
title: tax_region_id |
|
17
|
description: The ID of the tax region this rate belongs to. |
|
18
|
rate: |
|
19
|
type: number |
|
20
|
title: rate |
|
21
|
description: The rate to charge. |
|
22
|
example: 10 |
|
23
|
code: |
|
24
|
type: string |
|
25
|
title: code |
|
26
|
description: The code the tax rate is identified by. |
|
27
|
rules: |
|
28
|
type: array |
|
29
|
description: The tax rate's rules. |
|
30
|
items: |
|
31
|
$ref: ./AdminCreateTaxRateRule.yaml |
|
32
|
is_default: |
|
33
|
type: boolean |
|
34
|
title: is_default |
|
35
|
description: Whether the tax rate is the default in its tax region. |
|
36
|
is_combinable: |
|
37
|
type: boolean |
|
38
|
title: is_combinable |
|
39
|
description: Whether the tax rate should be combined with parent rates. |
|
40
|
externalDocs: |
|
41
|
url: >- |
|
42
|
https://docs.medusajs.com/resources/commerce-modules/tax/tax-rates-and-rules#combinable-tax-rates |
|
43
|
metadata: |
|
44
|
type: object |
|
45
|
description: The tax rate's metadata, used to store custom key-value pairs. |
|
46
|
externalDocs: |
|
47
|
url: https://docs.medusajs.com/api/admin#manage-metadata |
|
48
|
description: Learn how to manage metadata |