Path:
PATCH /cart/{cartId}/item/{lineItem}
While shopping, users frequently add or remove items from their cart. When a user removes an item from the cart, this endpoint is triggered. And, at any given point, the cart is maintained uptodate through the Update Cart Items endpoint.
Content-Type :application/json
x-site-context :{"date":"2020-05-25T13:16:09.000Z","channel":12}
application/json
application/json
Type : path
Name : cartID and lineItem
Required: true
https://{baseurl}/api-cart/cart/5f13883765bc750008b58293/item/1
Response Code: 200
Message: OK
Description: You'll see this message when an item is successfully removed from the cart.
Sample
{"_id": "5f13883765bc750008b58293","deleted": false,"registeredUser": false,"cartId": 1534,"items": [],"userId": "5f138820708ffb0007e609b0","allPromosApplied": [],"createdAt": "2020-07-18T23:39:35.978Z","updatedAt": "2020-07-18T23:46:13.408Z","__v": 0,"totalAmount": {"currency": "","amount": 0},"quantity": 0,"errors": {"inventory": [],"price": [],"promo": []}}
Last updated - July 2020