example-data.com

coupons / #26

code
E3XF116K
discountType
fixed
value
3.33
minOrderAmount
81.3
maxRedemptions
866
redemptionCount
213
validFrom
validUntil
isActive
false
createdAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/coupons/26"
)
coupon = res.json()
{
  "id": 26,
  "code": "E3XF116K",
  "discountType": "fixed",
  "value": 3.33,
  "minOrderAmount": 81.3,
  "maxRedemptions": 866,
  "redemptionCount": 213,
  "validFrom": "2025-10-18T23:24:40.611Z",
  "validUntil": "2027-04-26T11:16:47.669Z",
  "isActive": false,
  "createdAt": "2025-10-17T13:07:01.884Z"
}
Draftbit