Set promo code
set_promo_codeMake a promo code (code + percentOff 1-99, or amountOff in cents) or turn one off or on (promoCodeId + active). Works on the booking card and Stripe's page; tax is worked out on the price after the code.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | New code: 3-32 letters, digits, dashes. | |
| active | No | With promoCodeId: false turns it off. | |
| siteId | Yes | Site id. | |
| currency | No | With amountOff. Default usd. | |
| amountOff | No | Cents off, in currency. | |
| expiresAt | No | ISO date the code ends. | |
| percentOff | No | Whole percent, 1-99. | |
| promoCodeId | No | Existing code id (promo_...) to turn off or on. | |
| maxRedemptions | No | Most uses. Omit for no limit. |