Authorizations
Authorization string header required Bearer authentication header of the formBearer <token>, where <token> is your REST API token.
Request Body
customer object | null The customer placing the order. Optional — omit entirely for guest checkouts. Show child attributes customer.id string | null The platform customer ID. Used to look up the customer ifemail is not provided.
Example:
"cus_847362"
customer.email
string<email> | null
The customer’s email address. Takes priority over id when both are provided.
Example:
"rahul.sharma@example.com"
items
object[]
required
The line items in the cart. Must contain at least one item.
Show child attributes
items[].product_id
string
required
The platform product ID.
Example:
"prod_1001"
items[].variant_id
string
required
The platform variant/SKU ID.
Example:
"var_1001_red_m"
Response
200 - application/json data object Hide child attributes data.points_earned integer The estimated number of loyalty points the customer will earn after completing the purchase. Example:120
data.message
string
A human-readable message to display to the customer.
Example:
"You will earn 120 points after completing this purchase"