---
title: "Get coupon by id"
method: GET
path: "/ecommerce/coupons/{couponId}"
tags: ["🛒 Ecommerce"]
---

# Get coupon by id

`GET /ecommerce/coupons/{couponId}`

The API endpoint allows a logged-in user to retrieve a coupon by providing the `couponId` as a path variable.

By making a request to the API with the appropriate `couponId`, the server will return the corresponding coupon details, such as its code, discount amount, expiration date, or any other relevant information associated with that specific coupon.

## Response `200`

Get coupon by id

- object
  - `data` object
    - `__v` number
    - `_id` string
    - `couponCode` string
    - `createdAt` string
    - `discountValue` number
    - `expiryDate` string
    - `isActive` boolean
    - `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)
