📍 Bolt Help / Developers / Developer Guides / Checkout Setup / Embedded Checkout Setup / Embedded Accounts / Read a Bolt Shopper's Account Details

Read a Bolt Shopper's Account Details

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.

Read Account Details

The Bolt access token authorizes your application and identifies the shopper; it is the only parameter used for reading account details.

curl -X GET -H "X-Api-Key: $APIKEY" -H "Authorization: bearer \
$requestToken" https://api-sandbox.bolt.com/v1/account

Success Response

{
  "profile": {
    "name": "Alan Watts",
    "first_name": "Alan",
    "last_name": "Watts",
    "email": "alan.watts@bolt.com",
    "phone": "1-867-5309"
  },
  "addresses": [
    {
      "id": "string",
      "street_address1": "888 main street",
      "street_address2": "apt 3021",
      "street_address3": null,
      "street_address4": null,
      "locality": "New York",
      "region": "NY",
      "postal_code": "10044",
      "country_code": "US",
      "country": "United States",
      "name": "Alan Watts",
      "first_name": "Alan",
      "last_name": "Watts",
      "company": "Bolt",
      "phone_number": "1-867-5309",
      "email_address": "alan.watts@bolt.com"
    }
  ],
  "payment_methods": [
    {
      "id": "string",
      "type": "card",
      "last4": "1234",
      "billing_address": {
        "id": "string",
        "street_address1": "888 main street",
        "street_address2": "apt 3021",
        "street_address3": null,
        "street_address4": null,
        "locality": "New York",
        "region": "NY",
        "postal_code": "10044",
        "country_code": "US",
        "country": "United States",
        "name": "Alan Watts",
        "first_name": "Alan",
        "last_name": "Watts",
        "company": "Bolt",
        "phone_number": "1-867-5309",
        "email_address": "alan.watts@bolt.com"
      }
    }
  ],
  "has_bolt_account": true
}

If the access token has expired, your backend can fetch a new one using the refresh token.

Error Response

{
    "result": {
        "success": false
    },
    "errors": [{
          "code": 1005,
          "message": "Authentication error. Invalid merchant key."
    }]
}

📖On This Page