#migs-price-list
1 messages · Page 1 of 1 (latest)
That call should give you the products and a list of their prices, can you tell me more about what data you aren't getting back that you are expecting?
I've got 4 products, each has at least one price. Each price has 3 currencies. I'm trying to get all this data so I can render a custom pricing table
I am not getting all the currencies
Ah so single price objects with multiple currencies. You may need to expand something on the price object, checking in to this...
I thought I could do prices.retrieve(price.id, { expand: ['currency_options'] }) but currency_options doesn't seem to be present
Even when retrieving the price directly? That is surprising
Can you send me the ID of a price that you are seeing this behavior with? price_1234
actually I am getting it now
now my questions is: can I do this with 2 calls, rather than 3 calls?
migs-price-list
Have you tried expanding prices.data.currency_options on the list product call?
that doesn't make sense, Product doesn't have prices
product has default_price
sure but that's not the same
@restive rose the best option is to call the List Prices API https://stripe.com/docs/api/prices/list and at the same time expand product (to get the full Product object) and currency_options to get all additional currencies.
You loop over every Price that way and you can aggregate Products