#skoshkarli
1 messages · Page 1 of 1 (latest)
Hi there, you can pass in the product ID when calling the pricing listing API (https://stripe.com/docs/api/prices/list#list_prices-product)
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
i am currently doing the following:
query: MY QUERY STRING,
expand: ['data.product'],
});
but it doesnt return all the currencies for each price
only the usd
and i dont see that in the list either
i am querying for multiple products at once
which is why i use search
example of a product setup:
i need to see all the currencies
but i only get USD
What does your query string look like?
product: 'someProduct' OR product: 'someOtherProduct'
i dont see anything about currencies in the api doc though
in prices section
this is very odd
but i can't use and AND and OR
You can use, see https://stripe.com/docs/search#query-structure-and-terminology
i dont really understand this, could you give an example?
would this allow to use an AND and OR ?
in the same query?
it was my udnerstanding that your api did not support this
based on previous conversations with you guys
Yes, for example you can do product = PROD1 AND product = PROD2
Just noted that AND and OR operators are mutually exclusive.
so that doesnt help me get the currencies
is it possible to get all the currencies for prices somehow?
?
@echo roost
Thanks for the waiting, discord is busy today
oh ok no worries. my response was delayed and i was worried that i lost you
You can expend the currency_options fields when listing or searching the prices (https://stripe.com/docs/api/prices/object#price_object-currency_options) to retrieve other currency options.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
got it. yes i think this works for me!. Thank you!