web
You’re offline. This is a read only version of the page.
close
Skip to main content
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
I have the same question (0)
  • Verified answer
    YUN ZHU Profile Picture
    89,830 Super User 2025 Season 2 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
    1,035 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 2,899 Super User 2025 Season 2

#2
Sumit Singh Profile Picture

Sumit Singh 2,444

#3
Jeffrey Bulanadi Profile Picture

Jeffrey Bulanadi 2,304

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans