# Add to cart

PUT `/cart`

This endpoint lets you to add products to an existing cart.

**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. |

**Request body**

```json
{
    "product": {"product": 123, "variantId": 123, "quantity": 1}
}
```

**Response**

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

```json
{
  "status": "Cart Updated",
}
```

{% endtab %}

{% tab title="400" %}

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

{% endtab %}
{% endtabs %}
