Introduction
The Cart API provides comprehensive functionality for managing shopping carts in your e-commerce application. It supports multiple operations including adding products, updating quantities, removing items, and managing cart selections.Cart Structure
A cart consists of several components:Products
The main items in the cart, including:Unique product identifier
Parent product ID for variants
Product quantity (max 10 per product)
Regular price of the product
Special/sale price if available
Exclusive membership price if applicable
Available stock quantity
Product type (1=simple, 6=bundle/combo)
Gender type: “0” (unisex), “1” (male), “2” (female)
Product size if applicable
Product URL slug
Array of category IDs
Array of product image URLs
Whether the product is selected for checkout (default: true)
Flag for mystery products (0 or 1)
Custom text for customizable products
Combo/Bundle Products
For bundle products (prod_type=6), additional fields apply:Parent bundle product ID
Specific option ID within the bundle
Discount percentage when bundle is complete
Array of bundle options with their own product details
Gift Vouchers
Gift voucher amount
Number of vouchers
Meta Information
Additional cart metadata including:- calculations: Cart totals, discounts, shipping charges
- climes: Climate impact tracking ID
- exclusive_user: Exclusive membership status
- reward_points: Loyalty points usage
- tss_money: TSS money (store credit) usage
- tss_points: TSS points usage
Calculations Object
Subtotal before discounts
Subtotal after discounts
Total discount amount
Shipping cost
Gift wrapping charges
Store credit applied
Loyalty points applied
TSS points applied
Final cart total
Cart Count
Cart Operations
The Cart API supports the following operations:- get: Retrieve current cart contents
- add: Add a product to the cart (increments if exists)
- set: Set a product quantity directly
- delete: Remove a product from the cart
- bulk_delete: Remove multiple products at once
- clear: Empty the entire cart
- selection: Mark products as selected/unselected for checkout
Special Features
Exclusive Membership
Carts can contain exclusive membership products with special pricing. Users who already have membership cannot add membership products again.Mystery Products
Mystery products have special restrictions:- Quantity must be 1
- Only one mystery product per parent product allowed
Nestle Products
Nestle products cannot be combined with other products in the cart.Combo Discounts
When all products in a bundle are added, combo pricing is automatically applied.Base Endpoint
Next Steps
Cart Operations
Learn about specific cart operations and their request/response formats