#Kévin Marcachi-tax-rates

1 messages · Page 1 of 1 (latest)

cerulean condor
#

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?

somber nymph
#

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.

cerulean condor
#

Ahhhh, I see what you mean. Let me dig on this for couple more minutes

somber nymph
#

Thank you

cerulean condor
#

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

somber nymph
#

Yes that was my second choice solution, make a big request and filter among results after. Where can I make this feedback?

cerulean condor
#

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