Base Endpoint
All cart operations use a single endpoint:Request Structure
All cart requests follow this structure:The cart operation to perform:
get, add, set, delete, clear, selection, bulk_deleteItem type:
products, giftvouchers, or metaOperation-specific data (see individual operations below)
Current state of the cart for synchronization
If false, clears selected products before operation
Get Cart
Retrieve the current cart contents.Request
Query Parameters
Platform identifier:
web or appForce cart recalculation:
0 or 1Response
Add Product
Add a product to the cart. If the product already exists, the quantity is incremented.Request
Request Parameters
Product ID to add
Quantity to add (max 10 per product)
Parent product ID if this is a variant
Gender type: “0” (unisex), “1” (male), “2” (female)
Product size
Regular price
Special price if available
Product URL slug
Product name
Product type (1=simple, 6=bundle)
Array of category IDs
Custom text for customizable products
Mystery product flag (0 or 1)
Bundle Products
For bundle products (prod_type=6), include the options array:Validation Rules
Response
Returns the updated cart object (same structure as GET operation).Set Product Quantity
Set a product’s quantity directly (not incremental).Request
Product ID to update
New quantity (max 10)
Product URL slug
Product type
Response
Returns the updated cart object.Delete Product
Remove a product from the cart.Request
Product ID to remove
Special Behavior
- Deleting a membership product removes associated membership-only products
- Deleting a combo product resets discount for other combo items
- If cart becomes empty, associated metadata (like climes ID) is removed
Response
Returns the updated cart object.Bulk Delete
Remove multiple products at once.Request
Array of product IDs (as strings or index_key values) to remove
Response
Returns the updated cart object.Clear Cart
Empty the entire cart or only selected items.Request
Behavior
- If selected products exist, only selected items are cleared
- If no selections, entire cart is cleared
- All metadata is reset
Response
Returns an empty cart object.Selection Management
Mark products as selected or unselected for checkout.Request
Special Behavior
- Exclusive membership products cannot be unselected
- When combo products are partially unselected, combo discount is removed
- When all combo products are selected, discount is automatically applied
- Response includes
selected_calculationsmetadata with totals for selected items only
Response
Returns the cart with updated selection states and separate calculations for selected items.Sync Cart
Sync a local cart with the server after user login.Request
User JWT token (standard or 2FA token starting with “2f.”)
Local cart state to sync with server
Response
App User Cart
Simplified cart API for mobile apps with authentication.This endpoint requires app authentication via the
check_app_auth decorator.Request
Cart operation:
get, add, set, delete, or clearProduct ID (required for add/set/delete)
Parent product ID for variants
Product quantity (required for add/set)
Gender type: “0”, “1”, or “2”
Response
HTTP status code (200, 201, or 400)
Human-readable operation result
Simplified cart object with products array and cart_total
Get Gift Vouchers
Retrieve available gift voucher options.Response
Gift voucher ID
Voucher amount in currency
Error Responses
Common Errors
400 Bad Request
Invalid request or validation error
Error Messages
"Item already removed"- Product no longer in cart"Specified quantity is out of stock"- Insufficient stock"Please refresh cart"- Cart state is stale"You are already a member"- Cannot add membership product"Mystery product quantity should be 1"- Invalid mystery product quantity"Bundle Product Already Added"- Cannot add duplicate bundle"Customizable product not available"- Invalid customization"Minimum order amount should be {amount}"- Order below minimum"Exclusive Membership can't be purchased alone with current cart"- Invalid cart combination