example-data.com

coupons / #19

code
BLY0WEM9I
discountType
percent
value
17
minOrderAmount
10.15
maxRedemptions
redemptionCount
122
validFrom
validUntil
isActive
true
createdAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/coupons/19"
)
coupon = res.json()
{
  "id": 19,
  "code": "BLY0WEM9I",
  "discountType": "percent",
  "value": 17,
  "minOrderAmount": 10.15,
  "maxRedemptions": null,
  "redemptionCount": 122,
  "validFrom": "2025-08-02T14:40:52.175Z",
  "validUntil": "2027-03-31T12:39:15.718Z",
  "isActive": true,
  "createdAt": "2025-07-29T07:59:30.008Z"
}
Draftbit