#Aditya Bhutani - Update Tax Rates
1 messages · Page 1 of 1 (latest)
What error do you get when you try to update it?
Do you have a request ID (req_123) from a time that you tried this?
No error. It’s returning me the response. But the tax_rates is not getting updated to []
Where can I get request Id ?
Give me a moment. I’ll look if I can find it.
Request Id is “req_ZmDsBBKh13B3U5”
I can see in the log. The tax rate is not being sent. But I’m sending the tax rate :/
The tax rates which apply to the invoice item. When set, the default_tax_rates on the invoice do not apply to this invoice item. Pass an empty string to remove previously-defined tax rates.
https://stripe.com/docs/api/invoiceitems/update#update_invoiceitem-tax_rates
Can you try putting one empty string in the array?
Or this might mean an empty string instead of the array. I am unsure how it would be done with that library.
After setting the array as [“”] I have received an error
*** Stripe::InvalidRequestError Exception: You passed an empty string for 'tax_rates[0]'. We assume empty values are an attempt to unset a parameter; however 'tax_rates[0]' cannot be unset. You should remove 'tax_rates[0]' from your request or supply a non-empty value.
Hey. Got it. Thanks @wary narwhal. You were really helpful. Used tax_rates: “” to unset tax.