# 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="/files/kD6uLIsaQiUVaggNKZCJ" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.digitalriver.com/commerce-api/shopper-apis/cart.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
