v1

latestOpenAPI 3.0.02026-07-226950132.6 KB
cart-items

Add item to cart

Adds a single product item to the customer's cart.

post/cart/add-item

Request body

idstring required

Unique identifier for the product or variation ID.

quantitystring required

Quantity of this item to add to the cart.

variationobject

Variable attributes that identify the variation of the item.

item_dataobject

Additional item data passed to make item unique.

emailstring email

Set the customers billing email address.

phonestring

Set the customers billing phone number.

pricestring

Overrides the general or sale price with a custom price for the item if set.

return_itemboolean

Returns the item details once added.

Response

Item added to cart successfully.

OR