coupons / #32
- code
- 5APCM76JKT
- discountType
- percent
- value
- 30
- minOrderAmount
- 63.6
- maxRedemptions
- —
- redemptionCount
- 210
- validFrom
- validUntil
- isActive
- true
- createdAt
Component variants
Medium
#32
#32
Small
coupons/32 curl -sS \
"https://example-data.com/api/v1/coupons/32" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/coupons/32"
);
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/32"
);
const coupon = (await res.json()) as Coupon;import requests
res = requests.get(
"https://example-data.com/api/v1/coupons/32"
)
coupon = res.json() {
"id": 32,
"code": "5APCM76JKT",
"discountType": "percent",
"value": 30,
"minOrderAmount": 63.6,
"maxRedemptions": null,
"redemptionCount": 210,
"validFrom": "2025-11-19T16:53:45.312Z",
"validUntil": "2027-03-16T22:35:14.701Z",
"isActive": true,
"createdAt": "2025-11-17T13:33:32.060Z"
}