Hi Business Central Community,
I'm trying to create Purchase Invoices in Business Central using API v2.0 (https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/api-reference/v2.0/), and I am trying to figure out how to property handle the tax.
I want to determine which tax area to use based on the tax and total amounts in the invoice by just calculating the rate and then matching it to a rate for one of the tax areas, but I can't find an API call that will give me the tax rates for the tax areas. There is a "taxArea" API call but that doesn't return me the rates (learn.microsoft.com/.../dynamics_taxarea), and I can't find any other tax related API call apart from "taxGroup" that doesn't give me that information either. Having the tax separate is required for Canadian invoices which are what I'm working with.
Currently my workaround is to have a hard-coded copy of the tax rates in my application to reference, but ideally I would like to just look up this information using the API.