# Cart

Simple Store supports a full ecommerce shopping cart object.

### Basic Cart Process

<div align="left"><img src="/files/-M4s87lrP2rIFe-Bhm4d" alt=""></div>

{% tabs %}
{% tab title="Attributes" %}

| Element                | Desciption                                                             |
| ---------------------- | ---------------------------------------------------------------------- |
| cartId                 | Unique Identifier for the Cart                                         |
| items\[]               | An array of one or many items in the Cart                              |
| items\[].productId     | Unique Identifer for the Product (see [Product](/concepts/product.md)) |
| items\[].slug          | Product Slug                                                           |
| items\[].title         | Product Title                                                          |
| items\[].description   | Product Description                                                    |
| items\[].quanity       | Quantity of Product                                                    |
| items\[].paymentMethod | Payment Method                                                         |
| items\[].totalCurrency | Product Total in Currency                                              |
| items\[].totalPoints   | Product Total in Points                                                |
| items\[].files\[]      | See [Assets](/concepts/assets.md)                                      |
| items\[].attributes    | One or more key/value pairs to support customisation of products       |
| currencyCode           | ISO currency code                                                      |
| shippingFee            | Shipping Fee                                                           |
| subTotalCurrency       | Cart Total in Currency (excluding Shipping)                            |
| totalCurrency          | Cart Total in Currency                                                 |
| totalPoints            | Cart Total in Points                                                   |
| attributes             | One or more key/value pairs to support customisation of cart           |
|                        |                                                                        |
| {% endtab %}           |                                                                        |

{% tab title="Sample Object" %}

```
{
  "cartId": "string",
  "items": [
    {
      "productId": "string",
      "slug": "string",
      "title": "string",
      "description": "string",
      "quantity": 0,
      "paymentMethod": "CurrencyOnly",
      "totalCurrency": 0,
      "totalPoints": 0,
      "files": [
        {
          "fileId": "string",
          "contentType": "string",
          "accessPermission": "string",
          "accessUrl": "string",
          "attributes": {},
          "edgeUrl": "string"
        }
      ],
      "attributes": {}
    }
  ],
  "currencyCode": "string",
  "shippingFee": 0,
  "subTotalCurrency": 0,
  "totalCurrency": 0,
  "totalPoints": 0,
  "attributes": {}
}
```

{% endtab %}
{% endtabs %}


---

# 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.simplestore.io/concepts/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.
