Create Bolt Account
POST {{api_base_url}}/v1/account
Creates a Bolt shopper account. A payment method must be included.
Required Variables
shopperemail & shopperphone:
The email and phone of the Shopper whose Bolt Account is being created. To create a new account these identifiers must be unclaimed by an existing account.
Testing: For testing purposes, the Get Unused Shopper Account Identifiers request will provide a mechanism to get these values. (Only in Sandbox)
creditcardtoken:
An active credit card token for the payment method being attached to the new shopper account.
Testing: For testing purposes, the Create a Test Credit Card Token request will provide a mechanism to get these values. (Only in Sandbox)
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
{"addresses"=>[{"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"}], "payment_methods"=>[{"billing_address"=>{"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"}, "bin"=>"411111", "expiration"=>"2025-11", "last4"=>"1234", "postal_code"=>"10044", "network"=>"visa", "token"=>"{{credit_card_token}}", "token_type"=>"bolt", "default"=>true}], "profile"=>{"email"=>"{{shopper_email}}", "first_name"=>"Alan", "last_name"=>"Watts", "phone"=>"{{shopper_phone}}"}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
X-API-Key | string | Bolt Account API Key | |
X-Publishable-Key | string | Bolt Account Publishable Key |