|
1
|
type: object |
|
2
|
description: The address to create. |
|
3
|
x-schemaName: CreateAddress |
|
4
|
properties: |
|
5
|
customer_id: |
|
6
|
type: string |
|
7
|
title: customer_id |
|
8
|
description: The ID of the customer this address belongs to. |
|
9
|
company: |
|
10
|
type: string |
|
11
|
title: company |
|
12
|
description: The address's company. |
|
13
|
first_name: |
|
14
|
type: string |
|
15
|
title: first_name |
|
16
|
description: The address's first name. |
|
17
|
last_name: |
|
18
|
type: string |
|
19
|
title: last_name |
|
20
|
description: The address's last name. |
|
21
|
address_1: |
|
22
|
type: string |
|
23
|
title: address_1 |
|
24
|
description: The address's first line. |
|
25
|
address_2: |
|
26
|
type: string |
|
27
|
title: address_2 |
|
28
|
description: The address's second line. |
|
29
|
city: |
|
30
|
type: string |
|
31
|
title: city |
|
32
|
description: The address's city. |
|
33
|
country_code: |
|
34
|
type: string |
|
35
|
title: country_code |
|
36
|
description: The address's country code. |
|
37
|
example: us |
|
38
|
province: |
|
39
|
type: string |
|
40
|
title: province |
|
41
|
description: The address's ISO 3166-2 province code. Must be lower-case. |
|
42
|
example: us-ca |
|
43
|
externalDocs: |
|
44
|
url: https://en.wikipedia.org/wiki/ISO_3166-2 |
|
45
|
description: Learn more about ISO 3166-2 |
|
46
|
postal_code: |
|
47
|
type: string |
|
48
|
title: postal_code |
|
49
|
description: The address's postal code. |
|
50
|
phone: |
|
51
|
type: string |
|
52
|
title: phone |
|
53
|
description: The address's phone. |
|
54
|
metadata: |
|
55
|
type: object |
|
56
|
description: The address's metadata, can hold custom key-value pairs. |
|
57
|
externalDocs: |
|
58
|
url: https://docs.medusajs.com/api/store#manage-metadata |
|
59
|
description: Learn how to manage metadata |