The full current state of the cart. All five monetary totals are required; an empty-items cart is valid and is how the platform learns the cart was emptied.

interface FlowbizCart {
    cartId: string;
    coupons?: string[];
    currency?: string;
    deliveryAddress?: FlowbizAddress;
    discounts: number;
    freight: number;
    items?: FlowbizCartItem[];
    subtotal: number;
    tax: number;
    total: number;
}

Properties

cartId: string
coupons?: string[]

Coupon codes. Entries must be strings — a non-string entry rejects the whole call.

currency?: string
deliveryAddress?: FlowbizAddress
discounts: number
freight: number
items?: FlowbizCartItem[]
subtotal: number
tax: number
total: number