example-data.com

coupons / #6

code
EHGUGR
discountType
fixed
value
29.32
minOrderAmount
89.42
maxRedemptions
redemptionCount
384
validFrom
validUntil
isActive
true
createdAt

Component variants

Medium

#6

#6

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

res = requests.get(
    "https://example-data.com/api/v1/coupons/6"
)
coupon = res.json()
{
  "id": 6,
  "code": "EHGUGR",
  "discountType": "fixed",
  "value": 29.32,
  "minOrderAmount": 89.42,
  "maxRedemptions": null,
  "redemptionCount": 384,
  "validFrom": "2025-08-23T20:55:22.668Z",
  "validUntil": "2027-01-03T12:35:23.813Z",
  "isActive": true,
  "createdAt": "2025-08-21T15:17:16.835Z"
}
Draftbit