#Eranga - Prices
1 messages · Page 1 of 1 (latest)
Hello! That's correct; the purpose of the lookup_key is that it's a unique value across all your Prices so you can look up the Price by that ID. If more than one Price had the same ID you could no longer look up that Price by that ID.
Can you tell me more about your use case and what you're trying to do? I may be able to recommend an alternative approach.
I wanted to filter out a price which is using a specific currency and a specific recurring interaval
In my use case, I have multiple products
And each product has multiple prices like SGD monthly, USD yearly, SGD yearly etc.
I wanted to programmatically query the set of prices for a specific product based on currency and recurrent interval
You can use the list Prices API for that; specify currency and recurring.interval to filter to the Prices you want in the results: https://stripe.com/docs/api/prices/list#list_prices
I see... thanks 😊