2

I am working on a headless magento solution, but I am facing a bit of a problem.

As the official magento 2 docs suggest, cart items can be deleted using these:

DELETE /V1/guest-carts/:cartId/items/:itemId -> For Guest Users

DELETE /V1/carts/mine/items/:itemId -> For Signed-in users

Is there a way to delete multiple items without using the same API multiple times, or more conveniently empty the cart?

asked May 21, 2019 at 10:03

1 Answer 1

-1

Magento documentation does not specify an endpoint that allows for bulk deletion. Neither for signed-in users nor guest users.

You can, however, define custom endpoints (see an official documentation page). There's also a tutorial that shows how to do it for bulk edit.

answered Jan 3, 2020 at 9:44

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.