#raam-price-product
1 messages · Page 1 of 1 (latest)
Hey! You have a single price_xxx ID and want to retrieve the object including the associated Product object?
no,i had more than 3 products in stripe...
i want to get all the product details including the price_id and product details?
What you probably want to do is list all Prices for each prod_xxx you have using this endpoint: https://stripe.com/docs/api/prices/list
Pass the product parameter
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Then you can also expand the product field on the Price object to get those fields on the same response
Are you using one of our libraries?
@slender hinge i want to display all my stripe products in frontend,so i want to get all the both product details and price_id in a single api call,is it possible?
I just told you how to do it
here,we make the two api calls....
Unfortunately you can't list all Products and their Prices in a single API call, that requires 2 API calls
What I outlined would be n calls (where n is your number of products)
It's a single API call per product
Do your products have more than 1 price?
No @slender hinge
If not, you could probably just use the default_price field on the Product object: https://stripe.com/docs/api/products/object#product_object-default_price
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Hey, taking over here. Let me know if there's any follow-up Qs I can answer!
can i try it and reach you man @slender hinge
Unfortunately, ynnoj need to step away. Fill free to ask any follow-up Questions you may have
Sure @steep pecan