📍 Bolt Help / Developers / Developer Guides / Checkout Setup / Embedded Checkout Setup / Embedded Accounts / Add an Address to a Shopper's Account

Add an Address to a Shopper's Account

To perform account actions, you need the following two private keys:

Important: Only use these private keys from your back-end. Never use them from front-end javascript or mobile apps.

You may need to create a proxy back-end API that accepts shopper input, looks up your credentials, and integrates with the Bolt API.

Add an Address

You can add an address to a shopper’s Bolt Account by sending a POST request to /v1/account/addresses with the address details.

Example Request

curl -X POST -H "X-Api-Key: $APIKEY" -H \
"Authorization: bearer $requestToken" -H \
"Content-Type: application/json" \
https://api-sandbox.bolt.com/v1/account/addresses -d \
'{"street_address1":"124 N Main St","locality":"Houston",\
"country":"United States","name":"Test User","first_name":"Test",\

Example Response

  "id": "1a2b3c4d5e6f7g8",
  "street_address1": "124 N Main St",
  "street_address2": null,
  "street_address3": null,
  "street_address4": null,
  "locality": "Houston",
  "region": "Texas",
  "postal_code": "77002",
  "country_code": "US",
  "country": "United States",
  "name": "Test User",
  "first_name": "Test",
  "last_name": "User",
  "company": "Bolt",
  "phone_number": "8325555554",
  "email_address": "sampleuser@example.com",
  "default": true
📖On This Page