example-data.com

coupons / #15

code
3YLLETHSNF
discountType
percent
value
45
minOrderAmount
71.93
maxRedemptions
54
redemptionCount
10
validFrom
validUntil
isActive
true
createdAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/coupons/15"
)
coupon = res.json()
{
  "id": 15,
  "code": "3YLLETHSNF",
  "discountType": "percent",
  "value": 45,
  "minOrderAmount": 71.93,
  "maxRedemptions": 54,
  "redemptionCount": 10,
  "validFrom": "2026-04-05T14:52:15.107Z",
  "validUntil": "2026-07-21T02:48:32.604Z",
  "isActive": true,
  "createdAt": "2026-04-03T17:43:29.680Z"
}
Draftbit