π 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
Request
- Base URLhttps://api.freeapi.app/api/v1
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Response
Clear cart
Example response
{
"data": [],
"message": "Cart has been cleared",
"statusCode": 200,
"success": true
}Changes
No recorded changes to this operation across all 1 revision of this API.