get https://{host}/v2/coupon?=
Retrieves the details of one or more coupons by coupon codes or IDs, or get coupons issued to specific customers.
Query parameter
Parameter | Description |
---|---|
issuedToIds | Fetch coupons issued to specific customers. Pass customer IDs to fetch. |
couponIds | Fetch coupon details by coupon IDs. |
couponCodes | Fetch coupon details by coupon codes. |
Response parameter
Parameter | Description |
---|---|
code | The unique code associated with the coupon. |
seriesId | The ID of the series the coupon belongs to. |
description | A brief description of the coupon. |
discountCode | Code indicating the type of discount. |
validTill | The date and time until which the coupon is valid. |
discountType | The type of discount. |
discountValue | The value of the discount provided by the coupon. |
discountUpto | The maximum value up to which discount can be applied. |
discountOn | What the discount is applied on. |
detailedInfo | Detailed information about the coupon. |