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.
Hi Daniele, thanks for your reply. On a related note, do you know how to actually populate the tax when creating an invoice? It turns out purchaseInvoiceLine doesn't even actually expose the tax area code (for both POST and GET), and when I specify netTaxAmount it gets ignored.
hi
As far as I can tell, the only thing you can do is expose the Tax Jurisdictions by creating a custom API.
DAniele
André Arnaud de Cal...
292,160
Super User 2025 Season 1
Martin Dráb
230,962
Most Valuable Professional
nmaenpaa
101,156