coupons / #22
- code
- H622C4J
- discountType
- percent
- value
- 24
- minOrderAmount
- 88.93
- maxRedemptions
- —
- redemptionCount
- 488
- validFrom
- validUntil
- isActive
- false
- createdAt
Component variants
Medium
#22
#22
Small
coupons/22 curl -sS \
"https://example-data.com/api/v1/coupons/22" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/coupons/22"
);
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/22"
);
const coupon = (await res.json()) as Coupon;import requests
res = requests.get(
"https://example-data.com/api/v1/coupons/22"
)
coupon = res.json() {
"id": 22,
"code": "H622C4J",
"discountType": "percent",
"value": 24,
"minOrderAmount": 88.93,
"maxRedemptions": null,
"redemptionCount": 488,
"validFrom": "2025-07-14T19:42:30.810Z",
"validUntil": "2026-09-19T22:45:34.580Z",
"isActive": false,
"createdAt": "2025-07-12T19:32:57.792Z"
}