Skip to main content

Notifications

Announcements

No record found.

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

Getting tax rates via Business Central API

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,272 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans