example-data.com

coupons / #36

code
BDEQ1D
discountType
percent
value
35
minOrderAmount
maxRedemptions
844
redemptionCount
791
validFrom
validUntil
isActive
true
createdAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/coupons/36"
)
coupon = res.json()
{
  "id": 36,
  "code": "BDEQ1D",
  "discountType": "percent",
  "value": 35,
  "minOrderAmount": null,
  "maxRedemptions": 844,
  "redemptionCount": 791,
  "validFrom": "2025-09-09T19:09:13.140Z",
  "validUntil": "2026-05-23T08:45:45.705Z",
  "isActive": true,
  "createdAt": "2025-09-06T09:03:08.351Z"
}
Draftbit