> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

> **Deprecated.** This article is deprecated.

## Resource: Introduction

## Article: Introduction

## Article Link: https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/purchase-flow/cart/introduction.md

## Article Content:

# About the eCommerce Cart API

<blockquote class="warning">

__Deprecation Notice:__

**The eCommerce Cart API** has been replaced with [Cart V2](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/purchase-flow/cart-v2/introduction.md) and will be removed on February 1, 2027.

For migration guidance, see the [Cart V2 Migration Guide](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/purchase-flow/cart-v2/migration-guide.md).

</blockquote>

The cart is the first phase of a purchase, followed by checkout, then order.

A cart holds information about purchased items, prices, discounts, site details, buyer IDs (contact and member/visitor) and more. 
Additionally, some methods in the Cart API can directly manage the current cart of the site visitor or logged-in member.

With the eCommerce Cart API you can:
+ Get [a cart](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/purchase-flow/cart/get-cart.md) or [the current cart](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/purchase-flow/cart/get-current-cart.md).
+ Add catalog items to [a cart](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/purchase-flow/cart/add-to-cart.md) or to [the current cart](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/purchase-flow/cart/add-to-current-cart.md).
+ Create a checkout from [a cart](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/purchase-flow/cart/create-checkout-from-cart.md) or from [the current cart](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/purchase-flow/cart/create-checkout-from-current-cart.md). 
+ Estimate the price totals for [a cart](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/purchase-flow/cart/estimate-totals.md) or [the current cart](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/purchase-flow/cart/estimate-current-cart-totals.md).
+ Update the properties of [a cart](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/purchase-flow/cart/update-cart.md) or [the current cart](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/purchase-flow/cart/update-current-cart.md).
+ Update the quantity of line items in [a cart](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/purchase-flow/cart/update-line-items-quantity.md) or [the current cart](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/purchase-flow/cart/update-current-cart-line-item-quantity.md).
+ Remove a coupon from [a cart](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/purchase-flow/cart/remove-coupon.md) or [the current cart](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/purchase-flow/cart/remove-coupon-from-current-cart.md).
+ Remove line items from [a cart](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/purchase-flow/cart/remove-line-items.md) or [the current cart](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/purchase-flow/cart/remove-line-items-from-current-cart.md).
+ Delete [a cart](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/purchase-flow/cart/delete-cart.md) or [the current cart](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/purchase-flow/cart/delete-current-cart.md).

You can also listen for events when a cart is [created](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/purchase-flow/cart/cart-created.md), [updated](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/purchase-flow/cart/cart-updated.md), and [deleted](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/purchase-flow/cart/cart-deleted.md).

> **Note:** Some methods in this API require [visitor or member authentication](https://dev.wix.com/docs/api-reference/articles/authentication/about-identities.md).

