example-data.com

coupons / #40

code
UXA3SMOX27
discountType
percent
value
30
minOrderAmount
98.88
maxRedemptions
902
redemptionCount
122
validFrom
validUntil
isActive
true
createdAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/coupons/40"
)
coupon = res.json()
{
  "id": 40,
  "code": "UXA3SMOX27",
  "discountType": "percent",
  "value": 30,
  "minOrderAmount": 98.88,
  "maxRedemptions": 902,
  "redemptionCount": 122,
  "validFrom": "2025-09-10T00:30:13.406Z",
  "validUntil": "2026-11-24T05:37:06.752Z",
  "isActive": true,
  "createdAt": "2025-09-06T20:09:38.487Z"
}
Draftbit