Skip to main content
POST
Place Order

Overview

Creates a new cart, add items, set shipping information, and place an order - all in one API call. This endpoint is ideal for simple checkout flows where you want to minimize API calls.

Authentication

string
required
Device authentication token from Browser Session

Path Parameters

string
required
The merchant domain (e.g., “staging.luma.gift”)

Query Parameters

string
default:"false"
Enable Server-Sent Events for real-time progress updates. Set to “true” to receive events.

Request Body

string
required
JWE-encrypted credit card data using the public key from Get Public Key endpoint
object
required
Billing address information (same structure as shipping_info)
object
required
Shipping address informationRequired fields:
  • first_name (string): Customer’s first name
  • last_name (string): Customer’s last name
  • email (string): Email address
  • phone (string): Phone number
  • address1 (string): Primary address line
  • city (string): City name
  • state_or_province (string): State/province code
  • country (string): Country name or code
  • postal_code (string): ZIP or postal code
Optional fields:
  • address2 (string): Secondary address line
  • company (string): Company name
array
required
Array of items to add to cart. Each item must have:
string
Captcha verification token when required by merchant

Response

Returns a comprehensive order confirmation object including cart details, order information, and payment confirmation.
string
Unique identifier for the cart
string
The order number from the merchant platform
string
Status of the cart (e.g., “submitted”)
string
ISO timestamp when the order was submitted
string
Merchant’s display name
string
E-commerce platform identifier (e.g., “magento”, “shopify”)
string
Merchant domain
object
Relevant URLs for the order
array
Array of items in the order
object
Delivery address details
object
Billing address details
object
Selected shipping method with pricing
object
Summary of payment method used
object
Grand total including all costs
object
Subtotal before shipping and tax
object
Shipping cost
object
Tax amount
object
Total discount applied

Server-Sent Events

When sse=true, the endpoint streams progress events:
  • creating-cart - Cart creation started
  • item-added - Item added to cart (includes cart data)
  • shipping-updated - Shipping info set (includes cart data)
  • order-placed - Order successfully placed (includes order data)
  • error - Error occurred (includes error details)

Code Example

Request Example

Response Example

Error Responses