#devparry
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- devparry, 2 days ago, 49 messages
Hello
That depends mostly
What are you really trying to do?
Like you can always just list your Products: https://stripe.com/docs/api/products/list
But I assume you are looking for something more specific?
yes
actually, i have to get a list of all the active Products from Stripe and display it on my website
Hmm well the List Products API will show you that
we also need to display Product Interval which comes from the Price object, Right now we are only getting "default_price"
i hope now you get my point
Well you can expand the default_price to see those details
Are there multiple Prices associated to your Products?
right now we only have single price which is default_price
Okay then yeah you just expand the default_price when you list
Are you familiar with expansion?
no
Take a read through https://stripe.com/docs/expand in that case.
I am trying this
const products = await stripe.products.list({ active: true, expand: ['data.price'] } );
but noting happend