#Kévin Marcachi-tax-rates
1 messages · Page 1 of 1 (latest)
Can you elaborate on what you mean by filter tax rates? Are you trying to be able to search by country/state or something similar?
Actually, it's for searching by an identifier I store in tax rate metadata, like I do for products, prices.
For example, with prices (it's very handy):
$this->stripeClient->prices->search([
'query' => sprintf('metadata[\'identifier\']:\'%s\'', $identifier),
]);
But with tax rates, there is only an all() method, and the only parameters accepted are limit, or active.
Ahhhh, I see what you mean. Let me dig on this for couple more minutes
Thank you
So the Search API specifically doesn't seem to have this function. As a workaround, you could make a list all request on the resource you want (e.g. list all Invoices or list all Subscriptions) and check for the default_tax_rates to get the Rate information.
Adding that to the Search API would be great feedback though
Yes that was my second choice solution, make a big request and filter among results after. Where can I make this feedback?
If you just mention you want to make product feedback to our support folks, they have a path for getting it to the product team: https://support.stripe.com/contact/email
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.