#yelseW
1 messages · Page 1 of 1 (latest)
You may use List Prices API with product field set to retrieve all the prices under a specific product: https://stripe.com/docs/api/prices/list#list_prices-product
It's fine to have prices with different subscription period under one product
So we can do
- list all products to get id
- list all prices with all the products' id that we want
to be able to get what I want?
It looks like the List Price API only accepts 1 product at a time, I only have about 3 or 4 products with multiple prices so it is still reasonable, but is there anything else that lets me do it batched?
Yes, you can give it a try in test mode. It's not possible to make a bulk retrieval from multiple products in List Prices API. I'd recommend saving those information in your database instead of making those requests to Stripe every time.
Yup sounds like the way to go, thanks 🙂