Update an Address
Update by ID
PUT
https://api.moltin.com/v2/customers/:customerId/addresses/:addressId
Path Parameters
Name | Type | Description |
---|---|---|
customerId | string | The ID for the customer you are updating an address for |
Headers
Name | Type | Description |
---|---|---|
X-Moltin-Customer-Token | string | A customer token used to access customer addresses implicitly |
Authorization | string | The Bearer token to grant access to the API |
Request Body
Name | Type | Description |
---|---|---|
id | string | The ID for the address you are updating |
type | string | Represents the type of object being returned |
first_name | string | The first name of the recipient on this address |
last_name | string | The last name of the recipient on this address |
name | string | The name under which this address is saved. You can display this name to the customer when you ask them to select from their saved addresses |
phone_number | string | A phone number for this address |
instructions | string | Any delivery instructions for this address |
company_name | string | The company name at this address |
line_1 | string | The first portion of the address, usually the street address |
line_2 | string | The second portion of the address, usually an apartment or unit number |
city | string | The city for this address |
county | string | The county for this address |
postcode | string | The ZIP Code, Postcode, or other postal reference string for this delivery address |
country | string | A two digit code for the country this address is in, expressed as per the ISO 3166-2 standard |
Last updated