---
title: "Remove item from cart"
method: POST
path: "/remove-cart-item"
tags: ["Cart"]
---

# Remove item from cart

`POST /remove-cart-item`

## Request

- Base URL: `http://localhost:8000/api/shop`
- URL: `http://localhost:8000/api/shop/remove-cart-item`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/bagisto/apis/bagisto-shop-api/docs/remove-cart-item/post.ts> (a function with typed inputs; its response is checked against the schema)

Remove a single item from the cart by cart item ID.

## Headers

- `X-STOREFRONT-KEY` string, required
- `X-Locale` string
- `X-Channel` string
- `X-Currency` string

## Request body

- object
  - `cartItemId` integer, required: Cart item ID to remove

## Response `201`

Updated cart with the item removed.

## Other responses

- `400`: Missing cartItemId, or item not in cart.
- `422`: Validation Error

---

[API](https://skmtc.dev/bagisto/apis/bagisto-shop-api.md) - [All operations](https://skmtc.dev/bagisto/apis/bagisto-shop-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bagisto/apis/bagisto-shop-api/revisions/f619df36bf29?raw)
