coupons #22
- code
- H622C4J
- discountType
- percent
- value
- 24
- minOrderAmount
- 88.93
- maxRedemptions
- —
- redemptionCount
- 488
- validFrom
- validUntil
- isActive
- false
- createdAt
Overview
coupons / #22
#22
#22
Request
curl example
curl -sS \ "https://example-data.com/api/v1/coupons/22" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/coupons/22" ); 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/22"
);
const coupon = (await res.json()) as Coupon; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/coupons/22"
)
coupon = res.json() Response
{
"id": 22,
"code": "H622C4J",
"discountType": "percent",
"value": 24,
"minOrderAmount": 88.93,
"maxRedemptions": null,
"redemptionCount": 488,
"validFrom": "2025-07-14T19:42:30.810Z",
"validUntil": "2026-09-19T22:45:34.580Z",
"isActive": false,
"createdAt": "2025-07-12T19:32:57.792Z"
}