#ddbg - change coupon
1 messages ยท Page 1 of 1 (latest)
I wanted to know if it's possible to change a subscription's coupon to another one? Many thanks!
Yes, you can pass the ID of the new coupon in to thecouponparameter when making a subscription update call https://stripe.com/docs/api/subscriptions/update#update_subscription-coupon
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Hey Pompey, thank you for yoour fast reply!!!
is it possible to update the coupon directly on the stripe's web dashboard please?
I am not as familiar with that. Are you on the Dashboard page for the subscription and not seeing anything?
I'm not sure to find the coupon on the subscription page on my test dashboard :/
I will see if I can find it on my test dashboard. One moment...
thanks a loot @forest acorn !
ahh maybe I've found
I looked up in the coupons page and then can see what subs are attached
but can't update the coupon attached to a sub :/
Yeah I am not seeing anything in my dashboard either.
ahh I found! it's in the subscription page, I can upadte the coupon!
Good find! Where is the button for it?
I van even remove it
can I send a screen here?
do you know if the new coupon will be effective directly please?
I think it should be. The subscription page should be able to give you a preview of the next payment. Is it not showing the new coupon's discount on the subscription page?
Can you send me the ID of the subscription?
A screenshot would work too but I can look in to the ID a bit easier
sure, should I update the coupon before I send you the id (it's on my Stripe's test environment)?
Yes, that sounds great
๐
sub_1KjM4GFxsE4pn4oa4mx25ZEv
just updated the old coupon (discount for 2 months) to the new one (discount for 3 months)
looks like it has been updated!
Nice! I see the 3 month discount on the subscription's page and it looks like the discount will be applied to the next payment. Does that part look right to you?
but does that mean, if I was on my second last month with the old coupon, I update with the new coupon of 3 months, the client will have 3 more months?
Yes. If you want them to only have one more month, you will probably want to make a 1 month coupon and apply that instead