#vinkesh
1 messages ยท Page 1 of 1 (latest)
Hi ๐ yes, you can make a request to update a Subscription and only provide a value for coupon:
https://stripe.com/docs/api/subscriptions/update#update_subscription-coupon
Are you encountering an error when you try to do so?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
suppose i ahve invoice of 500
4 installemnt 125 each with 70 discount coupon
installemnt 1 paid 125-17.5 =107.5
Now update discount coupon to 50?
what will be for next 3
Is it 50-17.5 =32.5/3
Sorry, I'm not following the math there, I'm not sure where the 17.5 is coming from or what is being asked. If you want to see exactly how the changes you make to a Subscription will impact it's future billing periods, then you can use Test Clocks to create a simulation where you can advance time and test those changes.
https://stripe.com/docs/billing/testing/test-clocks
when subs start then coupon is 70 and for each installemnt its 17.5
But now its changed to 50
Sorry, I'm still having a hard time following. I'm not sure if those are dollar amounts or percentages, and I'm still not sure where the 17.5 is coming from. You have the context on the scenario, so if your goal is to see how your coupon change will impact your Subscription then I would recommend using Test Clocks to see that.
If you still have a question for me, I'm going to need more clarity on the scenario and what you're trying to ask.
no worriies