Add a code to a coupon.
Endpoint
Request body
| Name | Type | Required | Description |
|---|---|---|---|
coupon | string | Required | The coupon, cpn_.... |
code | string | Optional | What's typed. Leave it out and one is made for you, like X7KM-2QPD. |
first_time_only | boolean | Optional | Default false. |
one_per_customer | boolean | Optional | Default false. |
minimum_amount | integer | Optional | In cents. |
customer | string | Optional | Only this customer, cust_.... |
expires_at | timestamp | Optional | Its last moment. |
max_redemptions | integer | Optional | Within the coupon's own limit. |