example-data.com

coupons / #39

code
VSVKBGD22
discountType
percent
value
15
minOrderAmount
maxRedemptions
173
redemptionCount
66
validFrom
validUntil
isActive
false
createdAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/coupons/39"
)
coupon = res.json()
{
  "id": 39,
  "code": "VSVKBGD22",
  "discountType": "percent",
  "value": 15,
  "minOrderAmount": null,
  "maxRedemptions": 173,
  "redemptionCount": 66,
  "validFrom": "2025-12-15T13:43:17.206Z",
  "validUntil": "2027-04-11T14:02:17.368Z",
  "isActive": false,
  "createdAt": "2025-12-10T21:40:08.507Z"
}
Draftbit