---
title: "Move a wishlist item to the cart"
method: POST
path: "/move-wishlist-to-carts"
tags: ["Wishlist"]
---

# Move a wishlist item to the cart

`POST /move-wishlist-to-carts`

## Request

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

Moves the given wishlist item into the authenticated customer's active cart and removes it from the wishlist. Returns the updated cart.

## Headers

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

## Request body

- object
  - `wishlistItemId` integer, required: ID of the wishlist item to move
  - `quantity` integer: Quantity to add to cart (defaults to 1)

## Response `201`

Item moved to cart. Returns the updated cart.

## Other responses

- `400`: Invalid input
- `404`: Wishlist item not found or not owned by the caller.
- `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)
