Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

Business Central API adjust VAT on Sales Invoice

(0) ShareShare
ReportReport
Posted on 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 78,198 Super User 2025 Season 1 on at
    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 997 Moderator on at
    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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

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

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 231,493 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans