#drew_best-practices
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/1283046180548247576
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
hi there!
hello
if the credit balance is on the customer object, then it will be automatically applied to the next Invoice for that customer, so it might not be the Subscription you want yes.
I see two potential workarounds:
- each Customer only has a single subscription with multiple prices
- or don't use the customer balance at all, and instead manually add discounts on the Subscription object itself
Okay. And how do discounts work? If I have a subscription that cost £100 / year and I apply a discount of -£300, will that make the subscription renew at £0 for 3 years, or will it do £0 for one year and then apply the other £200 as acount credit?
depends on the duration you set when creating the coupon: https://docs.stripe.com/api/coupons/object?lang=java
Yes, I see what you mean. If I apply a coupon to the subscription, but then the customer decides that they want to upgrade the subscription quantity mid-term, how does that work? Does the coupon get applied to the upgrade invoice as well?
I would recommend to try some tests in test mode to see exactly how this works. you can use Test Clocks for this: https://docs.stripe.com/billing/testing/test-clocks
Okay, I will do. If I go the other route and try setting one subscription per customer, is there a way to move existing subscriptions over to a new customer?
not automatically no, that will require some custom work. like figuring out which subscription to cancel and which to keep, and then updating the subscription with the new prices while making sure customers don't end up paying for the same think twice
Okay. I thought that might be the case. Thank you for your advice.
happy to help 🙂