Raw
1 type: object
2 description: The tax region's details.
3 x-schemaName: AdminCreateTaxRegion
4 required:
5 - country_code
6 properties:
7 country_code:
8 type: string
9 title: country_code
10 description: The tax region's country code.
11 example: us
12 province_code:
13 type: string
14 title: province_code
15 description: The tax region's ISO 3166-2 province code. Must be lower-case.
16 example: us-ca
17 externalDocs:
18 url: https://en.wikipedia.org/wiki/ISO_3166-2
19 description: Learn more about ISO 3166-2
20 parent_id:
21 type: string
22 title: parent_id
23 description: The ID of the parent tax region.
24 default_tax_rate:
25 type: object
26 description: The tax region's default tax rate.
27 required:
28 - code
29 - name
30 properties:
31 rate:
32 type: number
33 title: rate
34 description: The rate to charge.
35 example: 10
36 code:
37 type: string
38 title: code
39 description: The code the tax rate is identified by
40 name:
41 type: string
42 title: name
43 description: The default tax rate's name.
44 example: VAT
45 is_combinable:
46 type: boolean
47 description: Whether the tax rate should be combined with parent rates.
48 externalDocs:
49 url: >-
50 https://docs.medusajs.com/resources/commerce-modules/tax/tax-rates-and-rules#combinable-tax-rates
51 metadata:
52 type: object
53 description: The default tax rate's metadata, used to store custom key-value pairs.
54 externalDocs:
55 url: https://docs.medusajs.com/api/admin#manage-metadata
56 description: Learn how to manage metadata
57 metadata:
58 type: object
59 description: The tax region's metadata, used to store custom key-value pairs.
60 externalDocs:
61 url: https://docs.medusajs.com/api/admin#manage-metadata
62 description: Learn how to manage metadata
63 provider_id:
64 type: string
65 title: provider_id
66 description: >-
67 The ID of the tax provider used to calculate the tax rate in this tax
68 region.