#manuel_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/1278452302583300209
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
idk if the .list() function has more filters/parameters
I only need the active ones not included not archived products :/
plans
Then yeah listing by active: true should work: https://docs.stripe.com/api/plans/list#list_plans-active
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Are you not seeing that be the case?
the thing is that im saving all those plans in my database and i can see the archived plans too. I have already emptied my table and when i retrieve all the plans i can still see them in my table
should i use the Price.list()?
Hi there ๐ taking over, as my colleague needs to step away
You should use either the Price LIst API or the Plan List API depending which one you're using
is there any difference? im seeing the object that return the response and its a little bit different but i dont have any problem just change my code
They're entirely different objects, so you'll need to inspect your Subscriptions to see which one is being used. Prices replaced Plans a while back, so that's why they look functionally and visually similar
ok, i understand. So how can i get all the active products? Using the "active" parameter too or i need something else?
Products have a List All API as well: https://docs.stripe.com/api/products/list
active is a parameter there
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.