POST
Create Order Token

Authorizations

X-API-Key
string
header
required

Admins and Developers can obtain their Bolt API key from the Bolt Merchant Dashboard.

Body

application/json

Generate Order Token

cart
object
required

The cart_create object is a composite of the base_cart object and additional order details.

channel
enum<string>
required

Used to determine the channel from which the order was created.

Available options:
browser,
mobile_app
create_cart_on_merchant_backend
boolean | null

Used to determine whether the order is created on your backend platform. This should almost always be false.

Example:

false

metadata
object | null
user_note
string

Optionally used by shoppers to make extra requests or provide details for gift messages.

Maximum string length: 1024
Example:

"Happy Birthday to my best friend in the whole world. Enjoy!"

seller_splits
object[] | null

Array of seller splits for marketplace orders. This enables marketplaces to dynamically configure commission fees and payment splits per seller. Each split contains seller identification, scoped line items and shipments, and declarative amount breakdowns.

Response

Token Generation Successful

cart
object

This is the cart object returned in a successful response.

dynamic_content
object
external_data
object
token
string
user_note
string

Used by shoppers to make extra requests or provide details for gift messages.