Remove From Basket
Remove a product variant from the user's shopping basket.
Endpoint
Authentication
Required (User role)
Request Body
Parameters
| Field | Type | Required | Description |
|---|---|---|---|
product_variant_id |
integer | Yes | Product variant ID to remove |
Response
Success (200 OK)
Error Responses
Validation Error (400)
Example Request
curl -X POST "https://api.luxmart.site/v1/products/basket/" \
-H "Authorization: Token your_access_token" \
-H "Content-Type: application/json" \
-d '{
"product_variant_id": 1
}'
Notes
- Removes the item completely from the basket (not just reducing quantity)
- Item is permanently deleted from the basket
- No error is returned if the item doesn't exist in the basket