v2
latestOpenAPI 3.0.02026-07-261677104.9 KBAccount
Edit an existing address
Edit an existing address on the shopper's account. This does not edit addresses that are already associated with other resources, such as transactions or shipments.
put/account/addresses/{id}
Path parameters
idstring required
Example:D4g3h5tBuVYK9
The ID of the address to edit
Headers
X-Publishable-Keystring required
The publicly shareable identifier used to identify your Bolt merchant division.
X-Merchant-Client-Idstring
A unique identifier for a shopper's device, generated by Bolt. The value is retrieved with Bolt.state.merchantClientId in your frontend context, per-shopper. This header is required for proper attribution of this operation to your analytics reports. Omitting this header may result in incorrect statistics.
Request body
Example request
{
"id": "D4g3h5tBuVYK9",
"first_name": "Alice",
"last_name": "Baker",
"company": "ACME Corporation",
"street_address1": "535 Mission St, Ste 1401",
"street_address2": "c/o Shipping Department",
"locality": "San Francisco",
"postal_code": "94105",
"region": "CA",
"country_code": "US",
"email": "alice@example.com",
"phone": "+14155550199",
"is_default": true
}Response
The address was successfully edited
Example response
{
"id": "D4g3h5tBuVYK9",
"first_name": "Alice",
"last_name": "Baker",
"company": "ACME Corporation",
"street_address1": "535 Mission St, Ste 1401",
"street_address2": "c/o Shipping Department",
"locality": "San Francisco",
"postal_code": "94105",
"region": "CA",
"country_code": "US",
"email": "alice@example.com",
"phone": "+14155550199",
"is_default": true
}