example-data.com

coupons / #17

code
XGHWYP5I
discountType
fixed
value
34.3
minOrderAmount
maxRedemptions
redemptionCount
126
validFrom
validUntil
isActive
true
createdAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/coupons/17"
)
coupon = res.json()
{
  "id": 17,
  "code": "XGHWYP5I",
  "discountType": "fixed",
  "value": 34.3,
  "minOrderAmount": null,
  "maxRedemptions": null,
  "redemptionCount": 126,
  "validFrom": "2025-10-05T13:34:43.343Z",
  "validUntil": "2026-07-06T20:21:15.841Z",
  "isActive": true,
  "createdAt": "2025-09-29T03:13:15.502Z"
}
Draftbit