coupons / #31
- code
- J24BTSHV
- discountType
- fixed
- value
- 23.38
- minOrderAmount
- —
- maxRedemptions
- —
- redemptionCount
- 147
- validFrom
- validUntil
- isActive
- true
- createdAt
Component variants
Medium
#31
#31
Small
coupons/31 curl -sS \
"https://example-data.com/api/v1/coupons/31" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/coupons/31"
);
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/31"
);
const coupon = (await res.json()) as Coupon;import requests
res = requests.get(
"https://example-data.com/api/v1/coupons/31"
)
coupon = res.json() {
"id": 31,
"code": "J24BTSHV",
"discountType": "fixed",
"value": 23.38,
"minOrderAmount": null,
"maxRedemptions": null,
"redemptionCount": 147,
"validFrom": "2025-10-22T11:07:52.895Z",
"validUntil": "2027-04-27T01:12:13.110Z",
"isActive": true,
"createdAt": "2025-10-21T17:42:24.250Z"
}