Create discount codeCopy Pagepost 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-timerequiredlimitsstringrequiredDefaults to {}Set to empty object - Work in progressResponses 200 201CreatedUpdated about 1 month ago Subscription termsChange discount statusDid this page help you?YesNo