---
description: Fire this api to remove an item from cart.
---

# Remove Item from user cart (13/01)

## This endpoint allows you to remove an item from cart

<mark style="color:blue;">`GET`</mark> `https://castleindia.in/emart/public /api/remove/cart/item /api/remove/cart/item`

#### Headers

| Name            | Type   | Description                            |
| --------------- | ------ | -------------------------------------- |
| Accept\*        | String | application/json                       |
| Authorization\* | String | Bearer token {bearer token} goes here. |

#### Request Body

| Name     | Type   | Description                             |
| -------- | ------ | --------------------------------------- |
| cartid\* | String | cart id which you get in main cart api. |

{% tabs %}
{% tab title="200: OK Upon successful response you will get the following" %}
```javascript
{
    "msg": "Item is removed from your cart !",
    "status": "success"
}
```
{% endtab %}

{% tab title="401: Unauthorized If user is not authorized" %}
```javascript
{
    "message": "Unauthenticated."
}
```
{% endtab %}
{% endtabs %}

### IF response fail

```
{
    "msg": "Cart id is required",
    "status": "fail"
}
```
