> For the complete documentation index, see [llms.txt](https://docs.simplestore.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.simplestore.io/concepts/cart.md).

# 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 %}
