---
title: "Remove coupon code"
method: POST
path: "/ecommerce/coupons/c/remove"
tags: ["🛒 Ecommerce"]
---

# Remove coupon code

`POST /ecommerce/coupons/c/remove`

The API for removing an applied coupon allows a logged-in user to remove a coupon code that was previously applied to their cart.

Once the coupon is removed, the API recalculates the total value of the cart without considering the discount amount, resulting in a non-discounted cart value.

This API essentially resets the cart to its original value before the coupon was applied, removing any discounts that were previously applied.

## Request body

- object
  - `couponCode` string

## Response `200`

Remove coupon code

- object
  - `data` object
    - `_id` string
    - `cartTotal` number
    - `discountedTotal` number
    - `items` object[]
      - `_id` string
      - `coupon` unknown
      - `product` object
        - `__v` number
        - `_id` string
        - `category` string
        - `createdAt` string
        - `description` string
        - `mainImage` object
          - `_id` string
          - `localPath` string
          - `url` string
        - `name` string
        - `owner` string
        - `price` number
        - `stock` number
        - `subImages` object[]
          - `_id` string
          - `localPath` string
          - `url` string
        - `updatedAt` string
      - `quantity` number
  - `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/versions/a9f3a290e4dc/schema)
