Image Description Image Description

No Results

  • Support
Logo Logo v1.0
  • Basics
  • Getting started
  • Get authenticating user
  • Products
  • Create a Product
  • Update a Product
  • Coupons
  • Create a Coupon
  • Update a Coupon
  • Delete a Coupon
  • List Coupons
  • License Keys
  • Verify a License Key
  • Redeem a License Key
  • Refund a License Key
  • Subscriptions
  • Verify a Subscription
  • Webhooks
  • Basics
  • Subscribe
  • Unsubscribe
  • Webhook Events
  • New sale
  • New lead
  • New affiliate sign-up
  • New subscription
  • Subscription cancellation

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)".