Skip to content

Delete Product Variant

Soft delete a product variant.

Endpoint

DELETE /v1/products/variant/store/?id={variant_id}

Authentication

Required (Store role)

Query Parameters

Parameter Type Required Description
id integer Yes Variant ID

Response

Success (200 OK)

{
  "success": "Product Variant Deleted"
}

Error Responses

Variant Not Found (404)

{
  "error": "Product Variant not found"
}

Missing ID Parameter (400)

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

Example Request

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

Notes

  • Performs a soft delete (sets is_deleted: true)
  • Variant must belong to a product owned by the authenticated store
  • Deleted variants cannot be retrieved or purchased