v2
latestOpenAPI 3.0.02026-07-261677104.9 KBAccount
Add an address
Add an address to the shopper's account
post/account/addresses
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 added
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
}