example-data.com

coupons / #28

code
SEKMLAL0N
discountType
fixed
value
45.38
minOrderAmount
96.43
maxRedemptions
429
redemptionCount
220
validFrom
validUntil
isActive
false
createdAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/coupons/28"
)
coupon = res.json()
{
  "id": 28,
  "code": "SEKMLAL0N",
  "discountType": "fixed",
  "value": 45.38,
  "minOrderAmount": 96.43,
  "maxRedemptions": 429,
  "redemptionCount": 220,
  "validFrom": "2025-12-25T20:23:23.782Z",
  "validUntil": "2026-12-29T10:05:13.291Z",
  "isActive": false,
  "createdAt": "2025-12-22T13:16:28.147Z"
}
Draftbit