Add Address
POST {{api_base_url}}/v1/account/addresses
Add an address to a shopper's account address book.
Required Variables
oauthaccesstoken:
An active OAuth access token. Obtain an access token from the Authorization Code Request under the OAuth folder. You will need a shopper's Authorization Code to receive this token.
Testing: For testing purposes, the Create Test Shopper Account request will provide a mechanism to get this value. (Only in Sandbox)
shopperemail & shopperphone:
The email and phone attached to the new shipping address in the shopper's address book.
The required variables are the minimum initial values necessary to get a request working. It is expected that you will add/modify more parameters throughout the integration process.
Request Body
{"company"=>"Bolt", "country"=>"United States", "country_code"=>"US", "default"=>true, "email"=>"{{shopper_email}}", "first_name"=>"Alan", "last_name"=>"Watts", "locality"=>"Brooklyn", "name"=>"Alan Watts", "phone"=>"{{shopper_phone}}", "postal_code"=>"10044", "region"=>"NY", "region_code"=>"NY", "street_address1"=>"888 main street", "street_address2"=>"apt 3021"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
X-API-Key | string | Bolt Account API Key | |
X-Publishable-Key | string | Bolt Account Publishable Key | |
Authorization | string | Auth token form shopper OAuth |