example-data.com

coupons / #9

code
7N72VZQWF
discountType
percent
value
5
minOrderAmount
97.65
maxRedemptions
850
redemptionCount
66
validFrom
validUntil
isActive
true
createdAt

Component variants

Medium

#9

#9

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

res = requests.get(
    "https://example-data.com/api/v1/coupons/9"
)
coupon = res.json()
{
  "id": 9,
  "code": "7N72VZQWF",
  "discountType": "percent",
  "value": 5,
  "minOrderAmount": 97.65,
  "maxRedemptions": 850,
  "redemptionCount": 66,
  "validFrom": "2025-06-21T15:11:32.191Z",
  "validUntil": "2026-07-29T09:44:25.630Z",
  "isActive": true,
  "createdAt": "2025-06-17T21:20:57.921Z"
}
Draftbit