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