Create Order Token
POST {{api_base_url}}/v1/merchant/orders
API for creating a Bolt order token with supplied cart information.
Required Variables
shopperemail & shopperphone:
The shopper email and phone attached to this new Bolt order token.
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
{"cart"=>{"currency"=>"USD", "items"=>[{"description"=>"Large tote with Bolt logo.", "quantity"=>1, "reference"=>"item_100", "sku"=>"BOLT-SKU_100", "unit_price"=>1000, "name"=>"Bolt Tote Bag"}], "shipments"=>[{"shipping_address"=>{"country"=>"United States", "country_code"=>"US", "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"}, "cost"=>100, "carrier"=>"UPS", "reference"=>"123", "service"=>"Ground 2 Day"}], "total_amount"=>1200, "tax_amount"=>100, "order_reference"=>"order_100", "display_id"=>"display_order_1"}, "user_note"=>"your user note", "channel"=>"browser"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
X-API-Key | string | Bolt Account API Key |