example-data.com

coupons / #11

code
ME9P4TBDAS
discountType
fixed
value
2.31
minOrderAmount
19.29
maxRedemptions
redemptionCount
242
validFrom
validUntil
isActive
false
createdAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/coupons/11"
)
coupon = res.json()
{
  "id": 11,
  "code": "ME9P4TBDAS",
  "discountType": "fixed",
  "value": 2.31,
  "minOrderAmount": 19.29,
  "maxRedemptions": null,
  "redemptionCount": 242,
  "validFrom": "2026-02-22T05:30:36.022Z",
  "validUntil": "2026-08-25T00:11:55.359Z",
  "isActive": false,
  "createdAt": "2026-02-18T04:19:59.841Z"
}
Draftbit