coupons #18
- code
- IEJCKJ
- discountType
- fixed
- value
- 20.31
- minOrderAmount
- —
- maxRedemptions
- —
- redemptionCount
- 38
- validFrom
- validUntil
- isActive
- true
- createdAt
Overview
coupons / #18
#18
#18
Request
curl example
curl -sS \ "https://example-data.com/api/v1/coupons/18" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/coupons/18" ); 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/18"
);
const coupon = (await res.json()) as Coupon; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/coupons/18"
)
coupon = res.json() Response
{
"id": 18,
"code": "IEJCKJ",
"discountType": "fixed",
"value": 20.31,
"minOrderAmount": null,
"maxRedemptions": null,
"redemptionCount": 38,
"validFrom": "2026-02-08T12:27:06.929Z",
"validUntil": "2026-07-13T00:32:08.239Z",
"isActive": true,
"createdAt": "2026-02-02T09:41:24.197Z"
}