example-data.com

coupons / #29

code
4ZOF8KTK
discountType
percent
value
45
minOrderAmount
74.28
maxRedemptions
987
redemptionCount
703
validFrom
validUntil
isActive
true
createdAt

Component variants

curl -sS \
  "https://example-data.com/api/v1/coupons/29" \
  -H "Accept: application/json"
const res = await fetch(
  "https://example-data.com/api/v1/coupons/29"
);
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/29"
);
const coupon = (await res.json()) as Coupon;
import requests

res = requests.get(
    "https://example-data.com/api/v1/coupons/29"
)
coupon = res.json()
{
  "id": 29,
  "code": "4ZOF8KTK",
  "discountType": "percent",
  "value": 45,
  "minOrderAmount": 74.28,
  "maxRedemptions": 987,
  "redemptionCount": 703,
  "validFrom": "2025-12-19T21:04:37.985Z",
  "validUntil": "2027-02-20T03:44:02.063Z",
  "isActive": true,
  "createdAt": "2025-12-15T22:18:46.873Z"
}
Draftbit