---
title: "Delete coupon"
method: DELETE
path: "/ecommerce/coupons/{couponId}"
tags: ["🛒 Ecommerce"]
---

# Delete coupon

`DELETE /ecommerce/coupons/{couponId}`

The API allows users with an `ADMIN` role to delete a coupon by providing the `couponId` as a path variable.

The API verifies the user's role before processing the request and deletes the coupon associated with the provided `couponId`.

## Response `200`

Delete coupon

- object
  - `data` object
    - `deletedCoupon` object
      - `__v` number
      - `_id` string
      - `couponCode` string
      - `createdAt` string
      - `discountValue` number
      - `expiryDate` string
      - `minimumCartValue` number
      - `name` string
      - `owner` string
      - `startDate` string
      - `type` string
      - `updatedAt` string
  - `message` string
  - `statusCode` number
  - `success` boolean

---

[API](https://skmtc.net/hiteshchoudhary-ssesph/apis/freeapi.md) · [All operations](https://skmtc.net/hiteshchoudhary-ssesph/apis/freeapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hiteshchoudhary-ssesph/freeapi/revisions/a9f3a290e4dc/schema)
