#brel_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/1329185788373630997
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi there. I'm sorry but I don't understand exactly what you're asking. What is your question? Do you have an example Subscription that illustrates the issue you're trying to solve?
I have two subscription plans. I have pro and premium. Pro costs $20 and premium costs $50.
What I realized is that if customer is enrolled to premium and them downgrades to pro, they get a balance of $30. That balance is automatically applied on other charges made in the future from that customer
Why does this happen?
This adjustment is called a proration, and you can "turn it off" during the downgrade request. I would recommend reading our guide here: https://docs.stripe.com/billing/subscriptions/upgrade-downgrade#proration
I would also recommend the general doc on prorations: https://docs.stripe.com/billing/subscriptions/prorations
but I want it on the upgrade but not downgrade. Does it have to be managed customly by me? Isn’t there an option to consider proration on upgrade but not on downgrade?
You can control it completely if you are making the update yourself using the proration_behavior parameter on the "Update a Subscription" endpoint: https://docs.corp.stripe.com/api/subscriptions/update#update_subscription-proration_behavior
If you're using the customer portal, however, it doesn't distinguish between upgrades and downgrades
Again, I would strongly recommend reading the two guides above, as prorations are a complex topic
ok but I need to check if that is an upgrade or downgrade though
Correct, you need to know which price is which when you make the change