API Documentation: Delete Product Variants
This API allows users with the appropriate permissions (such as vendors or vendor roles) to delete one or more product variants. Users must provide a list of variant IDs to delete the specified variants.
Permissions
- The user must have either the
Vendorrole or aVendorRolePermissionsrole. - Only vendors or users with the
VendorRolePermissionsassigned can delete product variants.
Endpoint
DELETE /api/v1/catalog/vendor/product-variants/delete/
Request Body
The request body should be a JSON object containing a list of variant_ids to delete.
Example:
{
"variant_ids": [1, 2, 3]
}
Responses
Success Response::
- Status Code: 200 OK
- Response Body:
{ "message": "Product variants deleted successfully." }