1 type: object
2 description: The customer's address.
3 x-schemaName: AdminCustomerAddress
4 required:
5 - id
6 - address_name
7 - is_default_shipping
8 - is_default_billing
9 - customer_id
10 - company
11 - first_name
12 - last_name
13 - address_1
14 - address_2
15 - city
16 - country_code
17 - province
18 - postal_code
19 - phone
20 - metadata
21 - created_at
22 - updated_at
23 properties:
24 id:
25 type: string
26 title: id
27 description: The address's ID.
28 address_name:
29 type: string
30 title: address_name
31 description: The address's name.
32 is_default_shipping:
33 type: boolean
34 title: is_default_shipping
35 description: Whether the address is the default shipping address.
36 is_default_billing:
37 type: boolean
38 title: is_default_billing
39 description: Whether the address is the default billing address.
40 customer_id:
41 type: string
42 title: customer_id
43 description: The ID of the customer that this address belongs to.
44 company:
45 type: string
46 title: company
47 description: The customer's company.
48 first_name:
49 type: string
50 title: first_name
51 description: The customer's first name.
52 last_name:
53 type: string
54 title: last_name
55 description: The customer's last name.
56 address_1:
57 type: string
58 title: address_1
59 description: The address's first line.
60 address_2:
61 type: string
62 title: address_2
63 description: The address's second line.
64 city:
65 type: string
66 title: city
67 description: The address's city.
68 country_code:
69 type: string
70 title: country_code
71 description: The address's country code.
72 example: us
73 province:
74 type: string
75 title: province
76 description: The address's lower-case ISO 3166-2 province code.
77 example: us-ca
78 externalDocs:
79 url: https://en.wikipedia.org/wiki/ISO_3166-2
80 description: Learn more about ISO 3166-2
81 postal_code:
82 type: string
83 title: postal_code
84 description: The address's postal code.
85 phone:
86 type: string
87 title: phone
88 description: The address's phone.
89 metadata:
90 type: object
91 description: The address's metadata, used to store custom key-value pairs.
92 externalDocs:
93 url: https://docs.medusajs.com/api/admin#manage-metadata
94 description: Learn how to manage metadata
95 created_at:
96 type: string
97 format: date-time
98 title: created_at
99 description: The address's creation date.
100 updated_at:
101 type: string
102 format: date-time
103 title: updated_at
104 description: The address's update date.