🛒 Ecommerce
Remove item from cart
The API allows users to remove/discard a complete product from their shopping cart, regardless of its quantity.
The productId is passed as a path variable in the URL.
This API endpoint is designed to remove the specified product entirely from the user's shopping cart, disregarding any quantity that may have been added previously.
delete/ecommerce/cart/item/{productId}
Response
Remove item from cart
Example response
{
"data": [
{
"_id": "647c94f4005517d68e8ebfff",
"product": {
"_id": "647c6cf7bcc50b214b2562b9",
"description": "Women Product 1 description a long descriptio",
"mainImage": {
"_id": "647c6cf7bcc50b214b2562ba",
"localPath": "public/images/rectangle-1splash.png-168587595995075960680.png",
"url": "http://localhost:8080/images/rectangle-1splash.png-168587595995075960680.png"
},
"name": "Women Product 1",
"price": 5000,
"stock": 100
},
"quantity": 3
}
],
"message": "Item removed successfully",
"statusCode": 200,
"success": true
}