coupons / #13
- code
- NGVAYU
- discountType
- fixed
- value
- 1.73
- minOrderAmount
- 49.59
- maxRedemptions
- 711
- redemptionCount
- 256
- validFrom
- validUntil
- isActive
- true
- createdAt
Component variants
Medium
#13
#13
Small
coupons/13 curl -sS \
"https://example-data.com/api/v1/coupons/13" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/coupons/13"
);
const coupon = await res.json();import type { Coupon } from "https://example-data.com/types/coupons.d.ts";
const res = await fetch(
"https://example-data.com/api/v1/coupons/13"
);
const coupon = (await res.json()) as Coupon;import requests
res = requests.get(
"https://example-data.com/api/v1/coupons/13"
)
coupon = res.json() {
"id": 13,
"code": "NGVAYU",
"discountType": "fixed",
"value": 1.73,
"minOrderAmount": 49.59,
"maxRedemptions": 711,
"redemptionCount": 256,
"validFrom": "2025-08-16T02:56:09.127Z",
"validUntil": "2027-04-11T06:52:17.617Z",
"isActive": true,
"createdAt": "2025-08-10T10:16:47.570Z"
}