createDiscountCode
Creates a discount code
Last updated
Creates a discount code
Last updated
input (!)
Parameters for CreateDiscountCode
metadata ()
Metadata that can be used by developers to store additional information on objects.
promotionId (!)
The promotion to attach to this discount code
code (!)
The code that can be applied when creating a subscription
maxTimesUsed (!)
The max times this discount code can be used
autoSelectPlanId ()
The discount code can only be applied to this plan