Skip to main content
POST
Complete Order

Overview

Completes the checkout process for carts using the Full Cart API. This endpoint supports advanced cart features including shipments, addons, and complex product configurations.

Authentication

string
required
Device authentication token from Browser Session

Path Parameters

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

Request Body

string
required
JWE-encrypted credit card data using the public key from Get Public Key endpoint
object
required
Billing 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
string
Captcha verification token when required by merchant

Response

Returns an order confirmation with Full Cart API structure including:
string
The order number from the merchant
string
Unique identifier for the cart
array
Detailed array of items with variant information
array
Shipment groups with fulfillment details
object
Selected addon services and their pricing
object
Final order total including all fees

Credit Card Encryption

The credit card must be encrypted as a JWE token with the following structure:

Code Example

Prerequisites

Before calling this endpoint:
  1. Cart must have at least one item
  2. All shipments must have shipping information set
  3. Required addons (if any) must be selected
  4. Tax calculations must be current

Error Responses