#Deeptanshu
1 messages · Page 1 of 1 (latest)
hello! do you want the discount to apply to the increased quantity also?
nopes
if I understood it correctly - you want the first seat to have the discount applied, but the second seat to have no discount applied?
yeah, further seats that we add in the subscription should not have discount
gimme a while to test something out
sure
i think it's not impossible but it's going to be complicated to manage. The way I would go about it is to have two separate Prices. The first time Checkout would use Price 1, subsequent additions during that first billing cycle would use Price 2. I would also schedule an update to the subscription such that after the first billing cycle, i would combine the number of seats from Price 1 with Price 2, and solely continue on with Price 2
ohhh okay, so we can't do it like first seat also with price 2 but with discount?
Hi @terse bison I'm taking over. give me a sec to catch up
So you just want to apply the discount in the very first invoice during checkout?
sure....just adding some samples to get the sense what different things I tried...
sub_1MevYxH06udFZQYBdiS6osA3 this was the subscription where I added discount on the first seat but then the second seat cost became discount of first + new seat cost
So you just want to apply the discount in the very first invoice during checkout?
yes
For subscription sub_1MeyO9H06udFZQYBH6DToIVc on successfull checkout succeed I updated the subscription with discount so that it stays with the subscription and do not get added with any new quantity update but it worked for the second seat addition correctly but with the update it removed the discount from the subscription automatically and then the third seat addition change added the discount amount as well
hey team, is the above mentioned way only the way to go about it??
Discord is busy. Your question is complicated I'll get back to you once I've helped other users
sure
Another way is to use credit notes to discount the first invoice of your customer.
Do you want to try it out? https://stripe.com/docs/invoicing/dashboard/credit-notes
ok will go through it once, if that covers the use case that we want to build
also can you check this subscription sub_1MeyO9H06udFZQYBH6DToIVc why the coupon got automatically removed when we updated the subscription quantity
The coupon's duration is once, it means it's only applied to the first invoice that this subscription generates.
The discount will be removed in the upcoming invoice regardless of subscription change
ohhh so we can pass the coupon in checkout time so that it gets applied the first time and then it should work fine???
how can we pass discount coupon in checkout api so that it gets applied to the subscription?]
https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-discounts here you can specify a coupon or promo code when creating a checkout session
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.