#smed_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/1301213326432272436
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello! The idea is that Products represent things people buy, and Prices represent what people pay for those things. If you're selling the same thing at different prices, you should have a single Product with multiple Prices. If you're selling different things, you should have different Products.
You can use the status property to list Subscriptions with only the status you specify: https://docs.stripe.com/api/subscriptions/list#list_subscriptions-status
but this doesn't accept array
You can also use the Search API to do more advanced searches: https://docs.stripe.com/api/subscriptions/search
Yes, with the list API you'd need to make two requests.
e.g: Discord Nitro, a basic one and a more premium one, would that be 2 different products or prices ?
I would probably model that as two different Products, since Discord Nitro Basic isn't the same thing as Discord Nitro Premium. What the customer gets is different.
alright yes and how would it work to make a button so that they can upgrade from basic to premium in the billing Portal, i know there's a way but can't find it
You need to configure the Portal to allow upgrades between those two Products.
We have guides and docs for how to do that here: https://docs.stripe.com/customer-management
oh i found it i was looking at the api instead of the dashboard , thanks for your help
No problem!