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