ThriveCart: Create coupon
thrivecart_create_couponThriveCart: New coupon with a fixed or percentage discount, dates, use limit and products. Creates a coupon the way the Coupons area does. The code needs at least 3 characters, letters and digits only. A percentage coupon can apply to the funnel, the main product, bumps only or the main product plus bumps; a fixed coupon applies to the main product only, once. max_uses counts all uses together, not per customer. The coupon is enabled when created, so buyers can use it from the start date. By default you confirm each call; you can switch that off for this tool. Reaches other people: confirm with the user before each call. Needs the user's Cotlet API key with access to this app.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | At least 3 characters, letters and digits only. | |
| name | Yes | Internal name. | |
| ends_on | No | Last day it works, until 23:59:59 in your account time zone. | |
| discount | Yes | Amount or percent, decimals allowed for percent, e.g. 20 or 12.5. | |
| max_uses | No | Disable after this many uses in total. | |
| starts_on | No | First day it works. Default: now. | |
| applies_to | No | Percentage only: funnel, main_product, bumps_only or main_and_bumps. Default: main_product. | |
| product_ids | No | Products it works on. Default: all products. | |
| affiliate_id | No | Credit this affiliate on every use. | |
| discount_type | Yes | fixed or percentage. | |
| apply_to_recurring | No | Percentage only: also discount recurring payments. |