Coupons
Create a coupon
Codes must be unique in the store (COUPON_CODE_TAKEN).
Permission: coupons:write
POST
Create a coupon
Authorizations
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.
Headers
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:
255Body
application/json
Uppercased. A–Z, 0–9, _, -.
Maximum string length:
64Example:
"SUMMER20"
Available options:
percent, fixed 1–100 for percent; minor units for fixed.
Required range:
x >= 1Example:
"2026-10-04T12:00:00.000Z"
Must be after valid_from.
Example:
"2026-10-04T12:00:00.000Z"
Available options:
active, inactive Product IDs or hash IDs of this store (max 1000). Replaces the current list; [] or null clears it.
Maximum array length:
100