Links

createDiscountCode

Creates a discount code

Arguments

Argument
Description
Parameters for CreateDiscountCode

CreateDiscountCodeInput Arguments

Argument
Description
metadata (JSON)
Metadata that can be used by developers to store additional information on objects.
promotionId (ID!)
The promotion to attach to this discount code
code (String!)
The code that can be applied when creating a subscription
maxTimesUsed (Int!)
The max times this discount code can be used
autoSelectPlanId (ID)
The discount code can only be applied to this plan

Return fields

discountCode (DiscountCode)

Last modified 4mo ago