example-data.com

coupons / #16

code
UX02FHW7
discountType
fixed
value
43.33
minOrderAmount
maxRedemptions
976
redemptionCount
681
validFrom
validUntil
isActive
false
createdAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/coupons/16"
)
coupon = res.json()
{
  "id": 16,
  "code": "UX02FHW7",
  "discountType": "fixed",
  "value": 43.33,
  "minOrderAmount": null,
  "maxRedemptions": 976,
  "redemptionCount": 681,
  "validFrom": "2026-03-07T14:56:47.222Z",
  "validUntil": "2026-11-04T06:44:48.236Z",
  "isActive": false,
  "createdAt": "2026-03-07T14:41:34.613Z"
}
Draftbit