Create a new promotion code for a coupon
| Parameter | Type | Required | Description |
|---|---|---|---|
coupon_uuid | string | Yes | UUID of the coupon to attach |
code | string | No | Promotion code (auto-generated if not provided) |
first_time_order | boolean | No | Valid only for first-time orders |
limit_to_specific_partner | boolean | No | Restrict to specific partner |
coupon_specific_partners | array | Yes* | Required if limit_to_specific_partner is true |
limit_to_specific_customer | boolean | No | Restrict to specific customer |
coupon_specific_customers | array | Yes* | Required if limit_to_specific_customer is true |
minimum_order_status | boolean | No | Enable minimum order requirement |
minimum_order_value | integer | Yes* | Required if minimum_order_status is true |
expiration_date_status | boolean | No | Enable expiration date |
expiration_date_value | date | Yes* | Required if expiration_date_status is true |
redemption_times_status | boolean | No | Enable redemption limit |
redemption_times_value | integer | Yes* | Required if redemption_times_status is true |
metadata | object | No | Custom key-value pairs |