Skip to main content

Notifications

Announcements

No record found.

Business Central forum
Answered

Business Central API adjust VAT on Sales Invoice

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
Categories:
  • Verified answer
    YUN ZHU Profile Picture
    YUN ZHU 70,124 Super User 2024 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
    Inge M. Bruvik 32,744 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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

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

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,564 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,651 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans