Coupons
Create a coupon
Codes must be unique in the store (COUPON_CODE_TAKEN).
Permission: coupons:write
POST
Create a coupon
Yetkilendirmeler
Your Store API key (pk_live_...). Create it in Developers › API keys.
The ID of the store the request is for. Shown in Developers › API keys.
Başlıklar
Unique key (for example a UUID) that makes retries safe. The first response is stored for 24 hours and replayed for retries with the same key and body.
Maximum string length:
255Gövde
application/json
Uppercased. A–Z, 0–9, _, -.
Maximum string length:
64Örnek:
"SUMMER20"
Mevcut seçenekler:
percent, fixed 1–100 for percent; minor units for fixed.
Gerekli aralık:
x >= 1Örnek:
"2026-10-04T12:00:00.000Z"
Must be after valid_from.
Örnek:
"2026-10-04T12:00:00.000Z"
Mevcut seçenekler:
active, inactive Product IDs or hash IDs of this store (max 1000). Replaces the current list; [] or null clears it.
Maximum array length:
100