v2
latestOpenAPI 3.0.02026-07-3139594346.4 KBAccount
Replace Address
Replace an existing address in a shopper's address book. These changes delete the existing address and create a new one.
post/v1/account/addresses/{id}
Path parameters
idstring required
The ID for an address in the shopper's Address Book.
Headers
X-Publishable-Keystring
The publicly viewable identifier used to identify a merchant division. This key is found in the Developer > API section of the Bolt Merchant Dashboard [RECOMMENDED].
Idempotency-Keystring
A key created by merchants that ensures POST and PATCH requests are only performed once. Read more about Idempotent Requests here.
Request body
Example request
{
"company": "Bolt",
"country": "United States",
"country_code": "US",
"default": true,
"door_code": "123456",
"email": "alan.watts@example.com",
"first_name": "Alan",
"last_name": "Watts",
"locality": "Brooklyn",
"name": "Alan Watts",
"phone": "+12125550199",
"postal_code": "10044",
"region": "NY",
"region_code": "NY",
"street_address1": "888 main street",
"street_address2": "apt 3021",
"street_address3": "c/o Alicia Watts",
"street_address4": "Bridge Street Apartment Building B",
"metadata": {
"customer_id": 234
}
}Response
Address Updated Successfully
Example response
{
"company": "Bolt",
"country": "United States",
"country_code": "US",
"door_code": "123456",
"email_address": "alan.watts@example.com",
"first_name": "Alan",
"last_name": "Watts",
"locality": "Brooklyn",
"name": "Alan Watts",
"phone_number": "+12125550199",
"postal_code": "10044",
"priority": "primary",
"region": "NY",
"region_code": "NY",
"street_address1": "888 main street",
"street_address2": "apt 3021",
"street_address3": "c/o Alicia Watts",
"street_address4": "Bridge Street Apartment Building B",
"metadata": {
"customer_id": 234
}
}