v1

latestOpenAPI 3.0.02026-07-226950132.6 KB
items

Add item to cart

Adds a product item to the customer's cart.

post/add-item

Request body

product_idstring

Unique identifier for the product.

quantitystring required

The quantity amount of the item to add to cart.

variation_idinteger

Unique identifier for the variation.

variationobject

The variation attributes that identity the variation of the item.

cart_item_dataobject

Additional item data passed to make item unique.

return_cartboolean

Returns the cart once item is added.

Response

Item added to cart successfully.

item_keystring

Unique identifier for the item within the cart.

idinteger

Product ID.

namestring

Product name.

titlestring

Product title.

pricestring

Current product price.

slugstring

Product slug.

backordersstring

Backorder status.

cart_item_dataobject

Custom cart item data.

featured_imagestring

Product featured image URL.