Skip to main content
Post a question

Notifications

Announcements

No record found.

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

Business Central API adjust VAT on Sales Invoice

Like (0) ShareShare
ReportReport
Posted on 15 Feb 2022 15:56:05 by 5
Hi
I'm looking for some assistance with the Business Central API. Currently I'm making calls to BC using the api v2.0 https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/api-reference/v2.0/ which is working well so far.
I'm generating Sales Invoices from data exported from a till system, and very occasionally there is a VAT rounding difference.
I've searched but I can't find any way to adjust the VAT amount via the API.
Does anyone know if this is possible to do via the API?
Many thanks
  • Verified answer
    YUN ZHU Profile Picture
    YUN ZHU 74,280 Super User 2024 Season 2 on 16 Feb 2022 at 02:39:39
    RE: Business Central API adjust VAT on Sales Invoice

    Hi, In BC you can only adjust Vat Amount by the following method.

    https://yzhums.com/2056/

    Of course this can be achieved in Code, but it is very complicated.

    If you really want to do it, instead of directly modifying the fields on the page, you can use the following method to bind a new actionto update the VAT.

    https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-creating-and-interacting-with-odatav4-bound-action

    Hope this will help.

    Thanks.

    ZHU

  • Suggested answer
    Inge M. Bruvik Profile Picture
    Inge M. Bruvik 32,748 Super User 2024 Season 1 on 15 Feb 2022 at 16:30:59
    RE: Business Central API adjust VAT on Sales Invoice

    Hi,

    You can not adjust the VAT amount when you create sales invoices via the API, You can only change the VAT posting group that is used.

    If you posted your sales through a journal you have some more control over the VAT amounts because you would be able to manipulate the VAT base amounts.

    You should try to figure out why the differences occur and fix the root cause. Maybe you need to round your prices before you create the sales invoice? 

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 Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,579 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans