coupons / #14
- code
- 1422DKHGUU
- discountType
- percent
- value
- 18
- minOrderAmount
- 71.15
- maxRedemptions
- —
- redemptionCount
- 197
- validFrom
- validUntil
- isActive
- true
- createdAt
Component variants
Medium
#14
#14
Small
coupons/14 curl -sS \
"https://example-data.com/api/v1/coupons/14" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/coupons/14"
);
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/14"
);
const coupon = (await res.json()) as Coupon;import requests
res = requests.get(
"https://example-data.com/api/v1/coupons/14"
)
coupon = res.json() {
"id": 14,
"code": "1422DKHGUU",
"discountType": "percent",
"value": 18,
"minOrderAmount": 71.15,
"maxRedemptions": null,
"redemptionCount": 197,
"validFrom": "2025-09-19T22:03:33.336Z",
"validUntil": "2027-02-06T22:20:14.812Z",
"isActive": true,
"createdAt": "2025-09-15T17:51:47.776Z"
}