Question:
How can I change the code, so that the generated coupon code only applies to the first billing cycle?
Product:
Wix Editor, Wix Pricing Plans, Wix Marketing Backend
What are you trying to achieve:
I’m trying to create a coupon programmatically with a fixed amount of payment cycles it can be applied to a pricing plan. At the moment, when I use it in checkout, it’s applied to all billing cycles of the pricing plan.
What have you already tried:
This code:
export function initCouponCreating(amountOff, couponCode) {
let couponInfo = {
"name": "Gutschrift",
"code": couponCode,
"startTime": new Date(),
"usageLimit": 1,
"limitedToOneItem": true,
"limitPerCustomer": 1,
"active": true,
"scope": {
"namespace": "pricingPlans"
},
"moneyOffAmount": amountOff
};
return coupons.createCoupon(couponInfo);
}
But I can’t seem to find the option to set it only to the first payment cycle.
@thomasj , @yisrael-wix any ideas?