#Eranga

1 messages · Page 1 of 1 (latest)

vague hillBOT
worldly drift
scarlet kite
#

'req_nOFjrda2zoPZrI'

scarlet kite
#

Any feedback?

worldly drift
#

I'm working on this, please give me some time.

scarlet kite
#

Sure, thank you @worldly drift

worldly drift
#

OK. You are applying a monthly repeating coupon to an annual subscription. Can you create a yearly repeating coupon and try again?

scarlet kite
#

Sure, give me a second

#

How can I create a yearly repeating coupon

#

This is what I see

#

What do you meant by yearly repeating coupon?

worldly drift
#

Sorry it's my oversight, there's only duration_in_months, no duration_in_years.

scarlet kite
#

Cool. No problem. How can I proceed from here?

worldly drift
#

So basically you want to apply the coupon once for the annual subscription right?

scarlet kite
#

Actually Once might not work for me

#

Do you think the error comes because I am trying to apply a coupon which has a duration Multiple months to a yearly subscription?

worldly drift
#

Ah, you are applying the coupon to invoice directly, not subscription. The invoice is an one-time object, and that's why it doesn't accept duration=repeating coupon.

#

Perhaps you want to apply the coupon to subscription instead?

scarlet kite
#

Yeah, exactly

#

I want to do that

#

I am trying to get the upcoming invoice after applying the promo code to the subscription

#

Ah, so I should put it inside subscription item?

worldly drift
scarlet kite
#

It worked, thank you so much @worldly drift

#

Now, does this mean I should add coupon param when I update the subscrption as well?

#

How do I know the promocode applied to the subscription. ?

worldly drift
#

You can use update a subscription with coupon or promotion_code to apply a discount.

scarlet kite
#

Right now, I am using promotion_code property to update the subscription

#

Ah, so my update is okay

#

Just upcoming invoice needs to be changed

#

Thank you @worldly drift

#

I think that is all for now

#

🥂

worldly drift
#

Happy to help!