coupons #28
- code
- SEKMLAL0N
- discountType
- fixed
- value
- 45.38
- minOrderAmount
- 96.43
- maxRedemptions
- 429
- redemptionCount
- 220
- validFrom
- validUntil
- isActive
- false
- createdAt
Overview
coupons / #28
#28
#28
Request
curl example
curl -sS \ "https://example-data.com/api/v1/coupons/28" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/coupons/28" ); 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/28"
);
const coupon = (await res.json()) as Coupon; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/coupons/28"
)
coupon = res.json() Response
{
"id": 28,
"code": "SEKMLAL0N",
"discountType": "fixed",
"value": 45.38,
"minOrderAmount": 96.43,
"maxRedemptions": 429,
"redemptionCount": 220,
"validFrom": "2025-12-25T20:23:23.782Z",
"validUntil": "2026-12-29T10:05:13.291Z",
"isActive": false,
"createdAt": "2025-12-22T13:16:28.147Z"
}