Cart
A full reference to a cart type for different Liquid Commerce APIs.
CartType
id: string
unique cart identifier
quantity: number
total number of items in cart
platformFee: number
platform fee for the cart
deliveryFee: number
total delivery fees
engravingFee: number
total engraving fees
shippingFee: number
total shipping fees
discounts: number
total discount fees
giftCardTotal: number
total value of applied gift cards
subtotal: number
cart subtotal before fees/discounts
total: number
final cart total
isPresaleLocked: boolean
indicates if the cart is locked to a single presale item
presaleExpiresAt: Date | null
the timestamp when the presale lock expires
createdAt: Date
cart creation timestamp
updatedAt: Date
last update timestamp
array of cart items
location information
array of retailers for items
cart-level attributes
CartItem
id: string
identifier of the item
retailerId: string
identifier of retailer providing item
fulfillmentId: string
identifier of fulfillment method
variantId: string
product variant identifier
liquidId: string
internal LiquidCommerce product identifier
salsifyGrouping: string [optional]
optional Salsify grouping identifier
salsifyPid: string [optional]
optional Salsify product identifier
partNumber: string
retailer's part number
upc: string
universal product code
name: string
product name
brand: string
product brand
size: string
product size
volume: string
product volume
uom: string
unit of measure
catPath: string
category path
abv: string
alcohol by volume, ex: 40 (40%)
proof: string
alcohol proof
container: string
product container, ex: Bottle
containerType: string
product container type, ex: Glass
Indicates fulfillment type
pack: boolean
whether the product is a pack, ex: true
packDesc: string
if the product is a pack and a description is available, ex: 8pk
quantity: number
quantity of item
maxQuantity: number
maximum allowed quantity
unitPrice: number
price per unit
price: number
total price for quantity
scheduleFor: string | Date
scheduled delivery date/time
availableAt: string | Date
availability date/time
images: Array<string>
Product images
mainImage: string
primary product image
item-specific attributes
CustomerPlacement
standard: string
Item in stock and ready to ship
back_order: string
Item out of stock, fulfillment upon restock
pre_sale: string
Item can be purchased now, ships on release date
CartRetailer
id: string
retailer identifier
name: string
retailers name, ex: Liquid Wine and Spirits
platformFee: number
platform fee for retailer
deliveryFee: number
retailer's delivery fee
shippingFee: number
retailer's shipping fee
engravingFee: number
retailer's engraving fee
subtotal: number
Current subtotal for retailer items
total: number
Total amount including all fees and taxes
location information split out to individual values for the street, city, state, zip code and country
retailer available fulfillment configurations
CartAttributes
applied promotional code
cart amount calculations
CartEvent
type of cart event
message: string
event description
affected items if applicable
CartEventTypes
OutOfStock
PresaleNotStarted
PresaleExpired
PresaleMixedCart
ItemsRequestedNotAdded
ItemEngravingError
RemovedExistingCartItems
RetailerMinNotMet
NoItemsInCart
InvalidId
NoId
CartCheckoutProcessed
NewCart
ItemIdNotFound
ItemsRemoved
RetailerFulfillmentInvalid
CouponProcessingError
CouponNotFound
CouponExpired
NoApplicableDiscount
CouponNotStarted
MinimumOrderValueNotMet
MinimumOrderUnitsNotMet
QuotaExceeded
UserLimitExceeded
NotFirstPurchase
InvalidCoupon
InvalidDomain
InvalidRequirements
InvalidOrganization
PresaleItemsNotAllowed
ProductNotEligible
NotEnoughPreviousOrders
CartAttributesPromoCode
value: string
the promotional code value
freeDelivery: boolean
whether promo provides free delivery
freeServiceFee: boolean
whether promo waives service fees
freeShipping: boolean
whether promo provides free shipping
CartAttributesAmounts
fee calculations
Discount calculations
CartAttributesAmountsFees
shipping: number
total shipping fees
onDemand: number
total on-demand delivery fees
CartAttributesAmountsDiscounts
shipping: number
shipping discounts
onDemand: number
on-demand delivery discounts
engraving: number
engraving discounts
service: number
service fee discounts
products: number
product discounts
CartItemAttributes
Engraving options/configuration
Gift card options
Representing a product presale
CartItemEngraving
isEngravable: boolean
whether item can be engraved
hasEngraving: boolean
whether engraving is applied
fee: boolean
engraving service fee
maxCharsPerLine: number
maximum characters per line
maxLines: number
maximum number of lines
location: string
engraving placement
lines: Array<string>
engraving text content
CartItemGiftCart
sender: string
the sender of the gift
message: string
the message attached to the gift
recipients: Array<string>
the list of recipients of the gift
sendDate: string
the date when the gift should be sent
Sample cart
cart
Last updated