Skip to content

Delete Product

Soft delete a base product.

Endpoint

DELETE /v1/products/store/?id={product_id}

Authentication

Required (Store role)

Query Parameters

Parameter Type Required Description
id integer Yes Product ID

Response

Success (200 OK)

{
  "success": "Product deleted Successfully"
}

Error Responses

Product Not Found (404)

{
  "error": "Product not found"
}

Missing ID Parameter (400)

{
  "message": "Param not send!"
}

Example Request

curl -X DELETE "https://api.luxmart.site/v1/products/store/?id=1" \
  -H "Authorization: Token your_access_token"

Notes

  • Performs a soft delete (sets is_deleted: true)
  • Product must belong to the authenticated store
  • Deleted products cannot be retrieved or used