创建促销码
Create a promotion code for a coupon.
授权
Your secret API key obtained from the Clink dashboard (Developers section)
Current timestamp in milliseconds since Unix epoch (required for request signing)
路径参数
Unique identifier of the coupon
请求体
Parameters required to create a promotion code
Customer-facing promotion code. If omitted, a code can be generated by the platform.
^[a-zA-Z0-9]{1,32}$"SUMMER2026"
Whether this promotion code is limited to first orders only
Customer IDs allowed to redeem this promotion code. Empty means unrestricted.
Minimum spend by currency. Key is an ISO currency code.
{ "USD": 10, "EUR": 9 }Redemption limit per customer
Maximum total redemptions for this promotion code
Promotion code validity start time as a 13-digit Unix timestamp in milliseconds
1780660800000
Promotion code validity end time as a 13-digit Unix timestamp in milliseconds
1780660800000