#madmark00178_code

1 messages ยท Page 1 of 1 (latest)

charred shoalBOT
#

๐Ÿ‘‹ 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/1309224759766024254

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

copper holly
#

Hi, let me help you with this.

last lake
#

Vanya - is there any guide on how to match the behavior of the billing portal downgrade preview by using API calls

copper holly
charred shoalBOT
last lake
#

But can i do that with test clocks?

copper holly
#

Yes, you create a Customer with Test clocks and then create a Billing Portal Session for the same Customer.

last lake
#

Additionally, with the new downgade preview feature, I can't find anything in the docs - what happens if someone makes a downgrade change (which is then scheduled) and then changes to somethign else? Does it handle all cases automatically by modifying the subscription schedule?

peak wind
#

Hi there ๐Ÿ‘‹ I'm taking over as my teammate needs to step away. Please bear with me while I catch up on the downgrade preview feature you're referring to.

#

Please let me know if it isn't the right feature you're referring to, but if it's this one mentioned here:
https://docs.stripe.com/customer-management/configure-portal#:~:text=Off-,Manage downgrades,-Preview
Then I don't think additional updates are supported, as Subscriptios with a Subscription Schedule aren't supported by the Customer Portal:
https://docs.stripe.com/customer-management#:~:text=Customers canโ€™t update or cancel subscriptions that currently have an update scheduled with a subscription schedule

last lake
#

I'm confused - the Manage Downgrades is part of the billing portal

#

customer portal*

peak wind
#

Yup, but it seems to attach a Subscription Schedule to the Subscription. So once a customer schedules one change I don't believe they'd be able to schedule others. But let me know if that isn't what you see in your testing.

last lake
#

K ill explore it. Sorry one other thing, but let me check something first

#

So okay, i assumed if i disable proration, it would charge for an upgrade immedtiately, but it doesn't - it charges at the end of the month. Is that correct? Is there a way to have it charge immediately via billing portal or do i need to use a custom api setup

peak wind
#

Can you elaborate on what you mean by disable prorations? Do you have an example of a Subscription you upgraded (the sub_ ID), or billing portal session ID (bps_)?

last lake
#

Yes - the customer portal can set to prorate or not prorate on subscription upgrades/downgrades. If you set it to not prorate, and then you upgrade in the customer portal, it charges at the end of the cycle.

#

I was wondering if there's a way to have it charge immedtiately for the new month

#

(full charge)

peak wind
#

I'll need to sit down and test this. I thought Subscription upgrades always triggered immediately, and that only downgrades could be postponed to happen at period end. Unless you're able to share examples from your testing that I can dig into.

peak wind
#

Oh I see, the upgrade happens immediately, but what you want to do is also adjust the billing_cycle_anchor to change when the billing periods are? That I don't believe is supported, but I'm double checking to make sure I'm not overlooking a parameter.

#

Yeah, I'm not seeing a way to do that.