coupons #34
- code
- OGIL87WW
- discountType
- fixed
- value
- 27.67
- minOrderAmount
- —
- maxRedemptions
- 971
- redemptionCount
- 874
- validFrom
- validUntil
- isActive
- true
- createdAt
Overview
coupons / #34
#34
#34
Request
curl example
curl -sS \ "https://example-data.com/api/v1/coupons/34" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/coupons/34" ); 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/34"
);
const coupon = (await res.json()) as Coupon; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/coupons/34"
)
coupon = res.json() Response
{
"id": 34,
"code": "OGIL87WW",
"discountType": "fixed",
"value": 27.67,
"minOrderAmount": null,
"maxRedemptions": 971,
"redemptionCount": 874,
"validFrom": "2026-01-15T12:58:13.477Z",
"validUntil": "2027-01-27T23:06:49.746Z",
"isActive": true,
"createdAt": "2026-01-08T19:16:32.534Z"
}