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