#simmonson-price-modeling
1 messages · Page 1 of 1 (latest)
@last beacon what's blocking you exactly? And you really should use our official SDKs
We have a generic API that takes in a dynamic API URL, one of which is Stripe, which is why we are querying the API directly instead of using the SDK.
What's blocking me exactly is that there are no unit amounts that I can extract from /v1/prices for volume or graduated pricing models
and my goal is to display products in a list and show their prices in the list
https://stripe.com/docs/api/prices/object#price_object-tiers is what you want. It's not returned by default, you have to include it in the response (a bit like what GraphQL does) by "expanding it" see https://stripe.com/docs/expand
so you need to pass expand[]=tiers to see it
ah - expand[]=data.tiers query. Thank you. I was searching the docs you linked but did not know the query key/value pairs to pass in.
yeah it's a bit obscure when you are not familiar with Expand itself
thanks, consider this thread closed 🙂