example-data.com

coupons / #27

code
8X4SJH8TP4
discountType
percent
value
20
minOrderAmount
88.82
maxRedemptions
redemptionCount
20
validFrom
validUntil
isActive
true
createdAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/coupons/27"
)
coupon = res.json()
{
  "id": 27,
  "code": "8X4SJH8TP4",
  "discountType": "percent",
  "value": 20,
  "minOrderAmount": 88.82,
  "maxRedemptions": null,
  "redemptionCount": 20,
  "validFrom": "2026-04-12T22:35:18.745Z",
  "validUntil": "2027-03-25T01:18:08.791Z",
  "isActive": true,
  "createdAt": "2026-04-12T16:11:29.305Z"
}
Draftbit