Skip to main content

Notifications

Small and medium business | Business Central, N...
Answered

Getting tax rates via Business Central API

(0) ShareShare
ReportReport
Posted on by 101

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.


  • tl2022 Profile Picture
    tl2022 101 on at
    RE: Getting tax rates via Business Central 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.

  • Verified answer
    DAnny3211 Profile Picture
    DAnny3211 9,274 Super User 2024 Season 1 on at
    RE: Getting tax rates via Business Central API

    hi

    As far as I can tell, the only thing you can do is expose the Tax Jurisdictions by creating a custom API.

    DAniele

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,160 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,962 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans