coupons #11
- code
- ME9P4TBDAS
- discountType
- fixed
- value
- 2.31
- minOrderAmount
- 19.29
- maxRedemptions
- —
- redemptionCount
- 242
- validFrom
- validUntil
- isActive
- false
- createdAt
Overview
coupons / #11
#11
#11
Request
curl example
curl -sS \ "https://example-data.com/api/v1/coupons/11" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/coupons/11" ); 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/11"
);
const coupon = (await res.json()) as Coupon; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/coupons/11"
)
coupon = res.json() Response
{
"id": 11,
"code": "ME9P4TBDAS",
"discountType": "fixed",
"value": 2.31,
"minOrderAmount": 19.29,
"maxRedemptions": null,
"redemptionCount": 242,
"validFrom": "2026-02-22T05:30:36.022Z",
"validUntil": "2026-08-25T00:11:55.359Z",
"isActive": false,
"createdAt": "2026-02-18T04:19:59.841Z"
}