Full Cart API
Complete Order
Completes checkout for Full Cart API with advanced features
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
Device authentication token from Browser Session
Path Parameters
The merchant domain (e.g., “staging.luma.gift”)
Request Body
JWE-encrypted credit card data using the public key from Get Public Key endpoint
Billing address informationRequired fields:
first_name(string): Customer’s first namelast_name(string): Customer’s last nameemail(string): Email addressphone(string): Phone numberaddress1(string): Primary address linecity(string): City namestate_or_province(string): State/province codecountry(string): Country name or codepostal_code(string): ZIP or postal code
address2(string): Secondary address linecompany(string): Company name
Captcha verification token when required by merchant
Response
Returns an order confirmation with Full Cart API structure including:The order number from the merchant
Unique identifier for the cart
Detailed array of items with variant information
Shipment groups with fulfillment details
Selected addon services and their pricing
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:- Cart must have at least one item
- All shipments must have shipping information set
- Required addons (if any) must be selected
- Tax calculations must be current
Error Responses
| Code | Description |
|---|---|
ErrorInvalidInputBody | Request validation failed |
ErrorMissingRequiredParameters | Cart missing required data |
ErrorCartNotFound | No cart found for domain |
ErrorPaymentDeclined | Payment was declined |
ErrorStoreUnavailable | Merchant temporarily unavailable |
Related Endpoints
- Get Public Key - Get encryption key
- Set Shipping Info - Add delivery address
- Add Line Item - Add products to cart
- Add Addon - Select addon services
Complete Order