#jacob_api
1 messages · Page 1 of 1 (latest)
👋 Welcome to your new thread!
⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1296932960288636938
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- jacob_best-practices, 17 hours ago, 6 messages
- jacob_billing-metered, 1 day ago, 22 messages
Was talking about this yesterday:
https://discord.com/channels/841573134531821608/1296640313775095879
https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-discounts
This api wording was confusing but now is proving I may only be able to include a single 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.
Is there a way I could include more than one? Why does the api not support this?
Hi, I know you can stack coupons when creating the subscription, https://docs.stripe.com/billing/subscriptions/coupons?dashboard-or-api=api#stackable-coupons. However, let me confirm this on Checkout Sessions in subscription mode.
I was able to confirm that this is not supported on Checkout today. Each session can only have a single discount.
As a work around, I would recommend that you sum up the discount and offer one discount.
Each discount is mapped to a metered product... not really something I can sum up
So I can stack coupons to a subscription, but not to a checkout session?
Could I update the subscription after checkout is complete? Seems like a weird approach
thank you. Would be great if I could stack coupons during the session, this seems quite critical to this use case
Yeap! There is not a timeline I can share with you but do know that the product owning team is aware of this limitation.
So you said no, I could not attach coupons after the subscription is created?
have you tested this? Does it work?
Was able to do it from the Dashboard just now. Let me try via API
Yes, was able to use the stripe shell to run subscription update
I am also testing this, hang tight.
Yeah, I still can edit it:
I see our documentation: https://docs.stripe.com/billing/subscriptions/overview#checkout-sessions
You can only upadate it after the session is compelete. Otherwise, you can't:
For Stripe Checkout integrations, you can’t update the subscription or its invoice if the session’s subscription is incomplete. You can listen to the checkout.session.completed webhook to make the update after the session has completed.
@lilac fog I'm closing the channel but I hope the above was helpful.
Oh wait
I just re-opened the thread as you said 'wait'
Thank you haha, just reading now! Want to check if I have any questions
looks like the link you sent might be internal? corp.strip?
You can listen to the checkout.session.completed webhook to make the update after the session has completed.
Makes sense! This is what I was thinking of doing as a workaround for now.
yes, you're right.
Yeah, since that change is coming I would not rely on that.
Sounds good!
Going to close this thread now, have a great weekend.
No, the fact that you can ony update subscription's after the Checkout is complete.
Sorry not sure I fully understand what you're recommending