#Benkaemu-products-prices-api

1 messages · Page 1 of 1 (latest)

fickle quartz
#

What are you trying to do?

gritty yew
#

get the prices of the products

#

in one api call

#

The entrypoint has to be prices ?

fickle quartz
#

Not sure if that's useful

gritty yew
#

I want to make a catalog page with products and prices, what is the best api call to do?

fickle quartz
#

How many Products do you have?

gritty yew
#

3

#

^^

fickle quartz
#

So you'll need to make 3 separate API calls, but shouldn't be too bad if you loop over the IDs you have

gritty yew
#

thank you

fickle quartz
#

You can expand the product field on the Price object to get the full product data too

#
$stripe->prices->all(['product' => 'prod_xxx', 'expand' => 'product']);