Skip to content

Remove From Basket

Remove a product variant from the user's shopping basket.

Endpoint

POST /v1/products/basket/

Authentication

Required (User role)

Request Body

{
  "product_variant_id": 1
}

Parameters

Field Type Required Description
product_variant_id integer Yes Product variant ID to remove

Response

Success (200 OK)

{
  "success": "Successfully Removed the Basket"
}

Error Responses

Validation Error (400)

{
  "message": "Validation error message"
}

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