#lil-nasty_best-practices

1 messages ¡ Page 1 of 1 (latest)

umbral tundraBOT
#

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

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

autumn kestrel
#

Is the only way going to be a migration script that utilizes the stripe api and fetches all subscriptions and updates the price to the new one?

#

From what I'm seeing that's the only real path forward to achieve this, but hoping I just missed some crucial information where I can select many subscriptions in the dashboard and switch them to the new price in bulk

formal current
#

Hi there. I'll be with you in just a moment

autumn kestrel
#

Thanks

formal current
#

Alright, thanks for waiting; I was helping some other folks

autumn kestrel
#

No worries

formal current
#

Can you elaborate on what you're confused about in the guide you linked? It handles this case exactly, though it links to this doc to tell you how to disable prorations on the update request

#

So your options are: you can update the Subscription to use the new Price and not use the old one, and disable prorations on the update request, or you can create a Subscription Schedule for the existing Subscription, and use the Schedule's phases to change the price the Subscription is subscribed to

#

But many people find Schedules harder to understand conceptually, though I think they're very useful once you get the hang of them

#

but in either case, I strongly recommend using Test Clocks to test the changes you want to make end-to-end to make sure you don't see any surprises in livemode

autumn kestrel
#

This guide covers the type of logic that would be in a migration script. What I'm asking about is if there's some way via the dashboard to update all the subscriptions on a certain price/tier to the new price that I've created for the subscription product.

formal current
#

As far as I'm aware, no

#

You could update the Subscriptions using the dashboard Subscription editor to migrate them one-by-one, but unless you have a small number of Subscriptions, that won't be practical

autumn kestrel
#

Yeah, that's what I figured.

Is there some way in the dashboard to sort subscriptions by their upcoming payment date? That way we can see which users are scheduled to pay the old price in the upcoming days/weeks?

formal current
#

Don't know - I can look, but I would generally recommend listing Subscriptions in the API filtering on price docs.

Even if you aren't a developer you should be able to get an LLM to give you a simple curl command to get the information. If you have a large number of Subscriptions it will be a little more difficult

#

Looks like you can get a report in the dashboard with a "Product" filter that will give you the "prod_123" or human-readable description of the product, so you could sort by that

autumn kestrel
#

The report you're referring to is simply a way to see subscriptions for a given product, right? It's not a way to sort subscriptions by upcoming renewal date

#

I'm aware I can script something to get this data and format it from the API, just was wondering if there's somewhere in the dashboard that saves me the time of writing up a script to fetch them and then sort on renewal date and then map them to prices.

formal current
#

I don't think so.

#

You would have to sort on billing cycle anchor and then understand that that is the date that the cycle is anchored to - so the billing cycle anchor date might be 4/25/25, but what that means, on a monthly Subscription, is that you expect the next Invoice should be due on the 25th of February (relative to right now)

autumn kestrel
#

Fair enough. Prob simpler to just create a script.

Thanks for your help.