Body
Unique identifier for the product or variation ID.
Quantity of this item to add to the cart.
Variable attributes that identify the variation of the item.
Additional item data passed to make item unique.
Set the customers billing email address.
Set the customers billing phone number.
Overrides the general or sale price with a custom price for the item if set.
Returns the item details once added.
Response
Item added to cart successfully.
- Default
- Item Only
Returns a full updated cart response.
Unique cart hash.
Unique cart key for the customer.
Cart items indexed by item key.
Total number of items in cart.
Total weight of all items.
Applied coupons.
Whether the cart needs payment.
Whether the cart needs shipping.
Cart fees.
Cart taxes.
Recently removed items that can be restored.
Cross-sell products.
Cart notices and messages.
Additional data from extensions.