Delete a Product
Endpoint
DELETE /products/delete
Required parameters
id-VARCHAR(25)- The ID of the product you want to delete
Example request
curl https://api.zylvie.com/products/delete \
-X DELETE \
-h "Authorization: Bearer e97f0aafe4884bc380c81fdb2347dc55" \
-h "Content-Type: application/json" \
-d '{
"id": "6v8Obm2M"
}'
Example response
{
"status": "success",
"message": "Product deleted"
}
If the product has paid transactions or active subscriptions, it will be archived instead:
{
"status": "success",
"message": "Product archived (cannot delete product with paid transactions or active subscriptions)"
}
Notes
- If the product has been purchased (has paid transactions) or has active subscriptions, it will be archived instead of deleted to preserve transaction history.
- Archived products are not deleted but are marked as unpublished, unlisted, and unfeatured.
- The product must belong to your authenticated brand. Attempting to delete a product that doesn't belong to you will result in a 404 error.
- If a product has variants with paid transactions, it will also be archived.
- If a product is archived, the response message will indicate "Product archived (cannot delete product with paid transactions or active subscriptions)".