coupons / #34
- code
- OGIL87WW
- discountType
- fixed
- value
- 27.67
- minOrderAmount
- —
- maxRedemptions
- 971
- redemptionCount
- 874
- validFrom
- validUntil
- isActive
- true
- createdAt
Component variants
Medium
#34
#34
Small
coupons/34 curl -sS \
"https://example-data.com/api/v1/coupons/34" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/coupons/34"
);
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/34"
);
const coupon = (await res.json()) as Coupon;import requests
res = requests.get(
"https://example-data.com/api/v1/coupons/34"
)
coupon = res.json() {
"id": 34,
"code": "OGIL87WW",
"discountType": "fixed",
"value": 27.67,
"minOrderAmount": null,
"maxRedemptions": 971,
"redemptionCount": 874,
"validFrom": "2026-01-15T12:58:13.477Z",
"validUntil": "2027-01-27T23:06:49.746Z",
"isActive": true,
"createdAt": "2026-01-08T19:16:32.534Z"
}