Setting sales tax rates via the API

Hi, two questions about setting sales tax rates via the API:

  1. I have an existing client that I want to set the default sales tax rate for. Is this possible? I tried this:

{
“settings”: {
“tax_rate1”: “8”,
“tax_name1”: “NY sales tax”,
}
}

…but it didn’t work. Do I need to refer to the system name of an already-created sales tax rate?

  1. Same question for setting the tax rate on invoices via the API. I’m trying to set tax_rate1 and having similar results: nothing is set for the value, even though the rest of the invoice is created successfully.

Thank you!

Hi,

The rate should be a number, not a string.

Note: you would need to include the full settings object otherwise other settings would be cleared. The app also uses the API, I suggest using the browser console to see a sample request.

Ok, I’m mildly literate in using the console; are there any resources on how to use the console to see a request like this?

You should just need to view the network tab in the browser console and then trigger the action in the app.