example-data.com

coupons / #33

code
790HS0S
discountType
fixed
value
13.92
minOrderAmount
maxRedemptions
928
redemptionCount
611
validFrom
validUntil
isActive
false
createdAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/coupons/33"
)
coupon = res.json()
{
  "id": 33,
  "code": "790HS0S",
  "discountType": "fixed",
  "value": 13.92,
  "minOrderAmount": null,
  "maxRedemptions": 928,
  "redemptionCount": 611,
  "validFrom": "2026-05-06T02:00:21.743Z",
  "validUntil": "2026-10-07T22:53:05.365Z",
  "isActive": false,
  "createdAt": "2026-05-01T04:45:36.739Z"
}
Draftbit