#climatebro_code

1 messages · Page 1 of 1 (latest)

austere saddleBOT
#

👋 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/1235995841794146304

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

formal rapids
#

Hello

astral imp
#

hey

formal rapids
#

As long as you aren't changing the interval of the Price (meaning monthly, yearly, etc.) for the Subscription then nothing will be changed for the billing anchor.

#

Mostly you just want to update to the new Price and pass proration_behavior :none

#

So that there is no proration involved.

#

And my recommendation is to test this out thoroughly in test mode before you run the script

#

So set up a Subscription in test mode for each of the different Sub types you have

#

And run it through your script

astral imp
#

ok great thanks

#

though because people have paid a range of prices (from £2 to £2000) on a single product, I'm not sure we can just update the product?

formal rapids
#

Not sure what you mean by that?

#

You update the Price, not the Product

astral imp
#

so i'm assuming i have to set up multiple new 'fixed' products, and then move customers from the previous metered product to the new product. which is where the intervals change

#

you're saying i can update the price on a metered product?

formal rapids
#

Prices correspond to Products

#

When you upgrade a Subscription you just change the Price

#

It is automatically associated to whatever Product it was created under

astral imp
#

OK cool. So i'm just adding in new fixed prices to the existing product

#

and as you say, no pro-rating

formal rapids
#

Yep that should work just fine

astral imp
#

brilliant, thank you

#

is there any guidance on a script then to move people paying a certain amount onto the new price?

formal rapids
#

Not really -- you mostly just have to write that yourself. The only guidance is that you basically create a mapping so that when you list and loop through Subscriptions and examine their Subscription Item(s) you then correctly update that Subscription to the correct Price that maps to the one they have currently.

astral imp
#

ok sounds good

#

thanks for your help!

formal rapids
#

Sure thing