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

# Remove multiple items from cart

`POST /remove-cart-items`

## Request

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

Remove multiple items from cart by providing an array of cart item IDs.

## Headers

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

## Request body

- object
  - `itemIds` integer[], required: Array of cart item IDs to remove

## Response `201`

Updated cart with the items removed.

## Other responses

- `400`: Missing/empty itemIds, or items 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)
