web
You’re offline. This is a read only version of the page.
close
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
I have the same question (0)
  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,105 Moderator on at

    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? 

  • Verified answer
    YUN ZHU Profile Picture
    95,329 Super User 2025 Season 2 on at

    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

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,229

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,867 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,153 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans