# Cart

Simple Store supports a full ecommerce shopping cart object.

### Basic Cart Process

<div align="left"><img src="https://3079805559-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZA-vUHasjE__5Y0ghc%2F-M4s7V1Ut3EWmQYiTjss%2F-M4s87lrP2rIFe-Bhm4d%2Fimage.png?alt=media&#x26;token=1b6891d8-80c6-476a-a068-4c75c5710326" 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](product))        |
| 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](assets)                                             |
| 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 %}



