Types
CreateCouponInput
Create a new coupon input
input
CreateCouponInputFields
additionalMetaData
JSON
Metadata associated with the entity
amountsOff
Fixed amount discounts in different currencies. Provide exactly one of percentOff or amountsOff — not both, not neither.
description
String
Description of the coupon
discountValue
Float
Discount value of the coupon (deprecated)
durationInMonths
Float
How many calendar months the discount applies for once redeemed, counted from when the coupon is applied (not tied to the subscription's billing period). Leave unset for a discount that lasts for the lifetime of the subscription.
environmentId
UUID
The unique identifier for the environment
name
String!
required
Name of the coupon
percentOff
Float
Percentage discount off the original price. Provide exactly one of percentOff or amountsOff — not both, not neither.
refId
String!
required
The unique identifier for the entity
type
Type of the coupon (percentage or fixed amount)