#0xL34N
1 messages · Page 1 of 1 (latest)
Hi! I need to get all of products with their corresponding list of prices
But i only recibe the default price
How are you currently listing your Products/Prices?
this.stripe.products.list()
I use Node
But in each product i have 2 differnts prices
Okay well that should work fine to list the Products but you'll want to use https://stripe.com/docs/api/prices/list to list the Prices
Does this mean that there is no way to get all the prices when searching for products?
i should be call first at list of prices and then at list of products and concat the 2 lists..
Sure you can list Prices by Product by passing the product param: https://stripe.com/docs/api/prices/list#list_prices-product
You can list your Products and then loop through them to list all Prices for that Product
Oka, i understand, i dont like that solutions, i think i could find the better way
Can you think of a better way to avoid making so many calls?
No, but this really shouldn't be that many calls unless you have thousands of products
That said, if you are planning on doing this regularly then you shouldn't
Thats true
Thanks for your time 🙂