# Get a cart

GET `/cart`

This endpoint lets you to retrieve an existing cart.&#x20;

**Headers**

| Header          | Type   | Description                                                                   |
| --------------- | ------ | ----------------------------------------------------------------------------- |
| `Authorization` | string | Bearer token.                                                                 |
| `customuserid`  | string | This is a unique object id identifier that you create for each of your users. |

**Response**

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

```json
{
   "user": "ObjectId",
   "items": [
        {
            "product": "ObjectId",
            "quantity": 1,
            "variantId": "String",
            "variantName": "String",
            "productPrice": "String"
        }
    ],
    "totalAmount": 100,
    "shippingCost": 5,
    "taxFee": 2,
    "tipAmount": 3,
    "offsetAmount": 1,
    "membershipDiscount": 2,
    "credits": 0,
    "isGuest": false
}
```

{% endtab %}

{% tab title="400" %}

```json
{
 "status": "Server Error",
}
```

{% endtab %}
{% endtabs %}
