1 type: object
2 description: The address's details.
3 x-schemaName: OrderAddress
4 required:
5 - id
6 - created_at
7 - updated_at
8 properties:
9 id:
10 type: string
11 title: id
12 description: The address's ID.
13 customer_id:
14 type: string
15 title: customer_id
16 description: The ID of the customer the address belongs to.
17 first_name:
18 type: string
19 title: first_name
20 description: The address's first name.
21 last_name:
22 type: string
23 title: last_name
24 description: The address's last name.
25 phone:
26 type: string
27 title: phone
28 description: The address's phone.
29 company:
30 type: string
31 title: company
32 description: The address's company.
33 address_1:
34 type: string
35 title: address_1
36 description: The address's first line.
37 address_2:
38 type: string
39 title: address_2
40 description: The address's second line.
41 city:
42 type: string
43 title: city
44 description: The address's city.
45 country_code:
46 type: string
47 title: country_code
48 description: The address's country code.
49 example: us
50 province:
51 type: string
52 title: province
53 description: The address's lower-case ISO 3166-2 province code.
54 example: us-ca
55 externalDocs:
56 url: https://en.wikipedia.org/wiki/ISO_3166-2
57 description: Learn more about ISO 3166-2
58 postal_code:
59 type: string
60 title: postal_code
61 description: The address's postal code.
62 metadata:
63 type: object
64 description: The address's metadata, can hold custom key-value pairs.
65 externalDocs:
66 url: https://docs.medusajs.com/api/store#manage-metadata
67 description: Learn how to manage metadata
68 created_at:
69 type: string
70 format: date-time
71 title: created_at
72 description: The date the address was created.
73 updated_at:
74 type: string
75 format: date-time
76 title: updated_at
77 description: The date the address was updated.