example-data.com

coupons / #18

code
IEJCKJ
discountType
fixed
value
20.31
minOrderAmount
maxRedemptions
redemptionCount
38
validFrom
validUntil
isActive
true
createdAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/coupons/18"
)
coupon = res.json()
{
  "id": 18,
  "code": "IEJCKJ",
  "discountType": "fixed",
  "value": 20.31,
  "minOrderAmount": null,
  "maxRedemptions": null,
  "redemptionCount": 38,
  "validFrom": "2026-02-08T12:27:06.929Z",
  "validUntil": "2026-07-13T00:32:08.239Z",
  "isActive": true,
  "createdAt": "2026-02-02T09:41:24.197Z"
}
Draftbit