1 type: object
2 description: The tax region's details.
3 x-schemaName: AdminTaxRegion
4 required:
5 - id
6 - country_code
7 - province_code
8 - metadata
9 - parent_id
10 - created_at
11 - updated_at
12 - deleted_at
13 - created_by
14 - tax_rates
15 - parent
16 - children
17 properties:
18 id:
19 type: string
20 title: id
21 description: The tax region's ID.
22 country_code:
23 type: string
24 title: country_code
25 description: The tax region's country code.
26 example: us
27 province_code:
28 type: string
29 title: province_code
30 description: The tax region's lower-case ISO 3166-2 province code.
31 example: us-ca
32 externalDocs:
33 url: https://en.wikipedia.org/wiki/ISO_3166-2
34 description: Learn more about ISO 3166-2
35 metadata:
36 type: object
37 description: The tax region's metadata, can hold custom key-value pairs.
38 externalDocs:
39 url: https://docs.medusajs.com/api/admin#manage-metadata
40 description: Learn how to manage metadata
41 parent_id:
42 type: string
43 title: parent_id
44 description: The ID of the parent tax region.
45 created_at:
46 type: string
47 format: date-time
48 title: created_at
49 description: The date the tax region was created.
50 updated_at:
51 type: string
52 format: date-time
53 title: updated_at
54 description: The date the tax region was updated.
55 deleted_at:
56 type: string
57 format: date-time
58 title: deleted_at
59 description: The date the tax region was deleted.
60 created_by:
61 type: string
62 title: created_by
63 description: The ID of the user that created the tax region.
64 tax_rates:
65 type: array
66 description: The tax region's rates.
67 items:
68 type: object
69 parent:
70 type: object
71 children:
72 type: array
73 description: The tax region's children.
74 items:
75 type: object