Default tax when creating an invoice trough the API

Hi,

I have defined a tax rate named VAT 19%, and marked it as default.

It applies correctly when manually creating an invoice, but I am creating invoices trough the API.

I managed to get the default_tax_rate_id from the Account API, but how do I tell the Invoice API to use it?

Or do I have to code this into the Invoice API?

Thanks.

I think the defaults are just used in the UI, you’d need to set the tax rate/name in the API requests.

FYI, we’ll look into correcting this…

Thanks for the reply. I ended up by setting the tax_name1 and tax_rate1 in the API request.