example-data.com

coupons / #21

code
TBIO5O
discountType
percent
value
12
minOrderAmount
83.37
maxRedemptions
601
redemptionCount
354
validFrom
validUntil
isActive
true
createdAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/coupons/21"
)
coupon = res.json()
{
  "id": 21,
  "code": "TBIO5O",
  "discountType": "percent",
  "value": 12,
  "minOrderAmount": 83.37,
  "maxRedemptions": 601,
  "redemptionCount": 354,
  "validFrom": "2026-02-08T23:56:31.936Z",
  "validUntil": "2026-07-24T20:38:29.520Z",
  "isActive": true,
  "createdAt": "2026-02-06T12:38:43.125Z"
}
Draftbit