#Eranga
1 messages · Page 1 of 1 (latest)
Hi! Can you share the request ID (req_xxx)? Here's how you can find it: https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
'req_nOFjrda2zoPZrI'
Any feedback?
I'm working on this, please give me some time.
Sure, thank you @worldly drift
OK. You are applying a monthly repeating coupon to an annual subscription. Can you create a yearly repeating coupon and try again?
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?
Sorry it's my oversight, there's only duration_in_months, no duration_in_years.
Cool. No problem. How can I proceed from here?
So basically you want to apply the coupon once for the annual subscription right?
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?
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?
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?
You should use the coupon param to apply coupon to subscription (https://stripe.com/docs/api/invoices/upcoming#upcoming_invoice-coupon)
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. ?
You can use update a subscription with coupon or promotion_code to apply a discount.
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
🥂
Happy to help!