coupons #21
- code
- TBIO5O
- discountType
- percent
- value
- 12
- minOrderAmount
- 83.37
- maxRedemptions
- 601
- redemptionCount
- 354
- validFrom
- validUntil
- isActive
- true
- createdAt
Overview
coupons / #21
#21
#21
Request
curl example
curl -sS \ "https://example-data.com/api/v1/coupons/21" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/coupons/21" ); 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/21"
);
const coupon = (await res.json()) as Coupon; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/coupons/21"
)
coupon = res.json() Response
{
"id": 21,
"code": "TBIO5O",
"discountType": "percent",
"value": 12,
"minOrderAmount": 83.37,
"maxRedemptions": 601,
"redemptionCount": 354,
"validFrom": "2026-02-08T23:56:31.936Z",
"validUntil": "2026-07-24T20:38:29.520Z",
"isActive": true,
"createdAt": "2026-02-06T12:38:43.125Z"
}