web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

Posting Invoices Using APIs

(0) ShareShare
ReportReport
Posted on by 50

Hi All, 

Is it possible to post an invoice using an API in Business Central? I know that there's the action within Flow but it doesn't accommodate for Multi-Companies.

I've had a look at the Purch-Post codeunit but there doesn't seem to be a schema where you input the invoice ID.

Thanks

Spencer

I have the same question (0)
  • Suggested answer
    JAngle Profile Picture
    152 on at

    It’s not too dissimilar to this concept: d365bcangle.wordpress.com/.../

    You just need a codeunit that does the sales or purchase post instead.

  • Spencer A-C Profile Picture
    50 on at

    Thanks, I know that creating my own CodeUnit is an option but I'm trying to use as much out the box functionality as possible.

    It seems strange to me that they have a CodeUnit for Purch-Post but no SOAP Action for actually posting the document.

  • Ethan-Sorenson Profile Picture
    225 on at

    Spencer,

    I ran into the same issue and created a web service to do this. I had to copy most of the existing CodeUnit to custom CodeUnits so I could pass the error messages back to the web service.

    github.com/.../PostOrdersWebService

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,005 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,148 Super User 2026 Season 1

#3
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 557 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans