coupons #13
- code
- NGVAYU
- discountType
- fixed
- value
- 1.73
- minOrderAmount
- 49.59
- maxRedemptions
- 711
- redemptionCount
- 256
- validFrom
- validUntil
- isActive
- true
- createdAt
Overview
coupons / #13
#13
#13
Request
curl example
curl -sS \ "https://example-data.com/api/v1/coupons/13" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/coupons/13" ); const coupon = await res.json();
TypeScript example
// Download once: mkdir -p types && curl -o types/coupons.d.ts https://example-data.com/types/coupons.d.ts
import type { Coupon } from "./types/coupons";
const res = await fetch(
"https://example-data.com/api/v1/coupons/13"
);
const coupon = (await res.json()) as Coupon; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/coupons/13"
)
coupon = res.json() Response
{
"id": 13,
"code": "NGVAYU",
"discountType": "fixed",
"value": 1.73,
"minOrderAmount": 49.59,
"maxRedemptions": 711,
"redemptionCount": 256,
"validFrom": "2025-08-16T02:56:09.127Z",
"validUntil": "2027-04-11T06:52:17.617Z",
"isActive": true,
"createdAt": "2025-08-10T10:16:47.570Z"
}