|
1
|
type: object |
|
2
|
description: The tax rate's details. |
|
3
|
x-schemaName: AdminTaxRate |
|
4
|
required: |
|
5
|
- id |
|
6
|
- rate |
|
7
|
- code |
|
8
|
- name |
|
9
|
- metadata |
|
10
|
- tax_region_id |
|
11
|
- is_combinable |
|
12
|
- is_default |
|
13
|
- created_at |
|
14
|
- updated_at |
|
15
|
- deleted_at |
|
16
|
- created_by |
|
17
|
- tax_region |
|
18
|
- rules |
|
19
|
properties: |
|
20
|
id: |
|
21
|
type: string |
|
22
|
title: id |
|
23
|
description: The tax rate's ID. |
|
24
|
rate: |
|
25
|
type: number |
|
26
|
title: rate |
|
27
|
description: The rate to charge. |
|
28
|
example: 10 |
|
29
|
code: |
|
30
|
type: string |
|
31
|
title: code |
|
32
|
description: The code the tax rate is identified by. |
|
33
|
name: |
|
34
|
type: string |
|
35
|
title: name |
|
36
|
description: The tax rate's name. |
|
37
|
metadata: |
|
38
|
type: object |
|
39
|
description: The tax rate's metadata, can hold custom key-value pairs. |
|
40
|
externalDocs: |
|
41
|
url: https://docs.medusajs.com/api/admin#manage-metadata |
|
42
|
description: Learn how to manage metadata |
|
43
|
tax_region_id: |
|
44
|
type: string |
|
45
|
title: tax_region_id |
|
46
|
description: The ID of the tax region this rate belongs to. |
|
47
|
is_combinable: |
|
48
|
type: boolean |
|
49
|
title: is_combinable |
|
50
|
description: Whether the tax rate should be combined with parent rates. |
|
51
|
externalDocs: |
|
52
|
url: >- |
|
53
|
https://docs.medusajs.com/resources/commerce-modules/tax/tax-rates-and-rules#combinable-tax-rates |
|
54
|
is_default: |
|
55
|
type: boolean |
|
56
|
title: is_default |
|
57
|
description: Whether this tax rate is the default in the tax region. |
|
58
|
created_at: |
|
59
|
type: string |
|
60
|
format: date-time |
|
61
|
title: created_at |
|
62
|
description: The date the tax rate was created. |
|
63
|
updated_at: |
|
64
|
type: string |
|
65
|
format: date-time |
|
66
|
title: updated_at |
|
67
|
description: The date the tax rate was updated. |
|
68
|
deleted_at: |
|
69
|
type: string |
|
70
|
format: date-time |
|
71
|
title: deleted_at |
|
72
|
description: The date the tax rate was deleted. |
|
73
|
created_by: |
|
74
|
type: string |
|
75
|
title: created_by |
|
76
|
description: The ID of the user that created the tax rate. |
|
77
|
tax_region: |
|
78
|
$ref: ./AdminTaxRegion.yaml |
|
79
|
rules: |
|
80
|
type: array |
|
81
|
description: The tax rate's rules. |
|
82
|
items: |
|
83
|
$ref: ./AdminTaxRateRule.yaml |