Edit Address

POST {{api_base_url}}/v1/account/addresses/:id

Edit an existing address in a shopper's address book. These changes replace the existing address.

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.

ID:

The address ID of the shopper address you are deleting. You receive this value in the GET Account Details request.

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

KeyDatatypeRequiredDescription
X-API-KeystringBolt Account API Key
X-Publishable-KeystringBolt Account Publishable Key
AuthorizationstringAuth token form shopper OAuth