> For the complete documentation index, see [llms.txt](https://docs.digitalriver.com/commerce-api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.digitalriver.com/commerce-api/shopper-apis/cart.md).

# Cart

Learn how to create and manage a cart.

The [Carts](https://www.digitalriver.com/docs/commerce-shopper-api/#tag/Apply-Shopper) resource is an essential tool designed to facilitate customers' and developers' management of shopping cart operations. It allows for retrieving, updating, and modifying cart data, ensuring a seamless shopping experience. By integrating with our Carts API, you can handle cart contents efficiently, whether for viewing a customer's current cart items, updating quantities, or adding and removing products.

{% hint style="danger" %}
Note that interaction with this API requires either an anonymous token for limited access or an authenticated token for full access, ensuring secure and controlled modifications to cart data.
{% endhint %}

<figure><img src="https://2721412755-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LzlYMEYC0GeLSgnsft6%2Fuploads%2FhaKGk9tHG3nwSUKA6hyd%2Fimage.png?alt=media&amp;token=b0b7fd85-b6e1-46d1-b136-e6431a010c0d" alt=""><figcaption></figcaption></figure>
