Copy PageCreate discount codepost https://api.greenleaze.com/v1/discount-codesBody ParamscodestringrequiredRandom string, if a discount code with the same string already exists then the new code will be created as "inactive"specificSubscriptionIdstringIf set, the code can only be used on the specified subscriptionvalueintegerrequiredAbsolute value of the discount code, depends on the type. Ex : 10 with type = fixed_amount then the code is of 10€typestringenumrequiredDefines if value is a percentage or an amount in eurofixed_amountproduct_percentageAllowed:fixed_amountproduct_percentagetargetstringenumrequiredDefines on which element the discount code is applied.all_productsproducts_rentalproducts_purchasefirst_monthdeliveryAllowed:all_productsproducts_rentalproducts_purchasefirst_monthdeliverystartDatedate-timerequiredendDatedate-timerequiredlimitsobjectrequiredSet to empty object - Work in progresslimits objectResponses 200 201CreatedUpdated 4 months ago Subscription termsChange discount statusDid this page help you?YesNo