v1

latestOpenAPI 3.0.3raw.githubusercontent.com2024-10-2916802.4 MB
🛒 Ecommerce

Clear cart

The API endpoint allows a logged-in user to clear their entire shopping cart.

By invoking this API, the user can remove all items from their cart, effectively clearing it and starting afresh.

This feature provides a convenient way for users to manage their shopping carts and begin a new shopping session.

delete/ecommerce/cart/clear

Response

Clear cart

messagestring
statusCodenumber
successboolean

Example response

{
  "data": [],
  "message": "Cart has been cleared",
  "statusCode": 200,
  "success": true
}