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...
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
    133 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

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 2,135

#2
YUN ZHU Profile Picture

YUN ZHU 733 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 612

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans