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

Post Purchase/Sales Invoice via API?

(0) ShareShare
ReportReport
Posted on by 87

Is it possible to post a purchase/sales invoice via the API?  The only methods I see are the basic HTTP commands (GET,POST,PATCH,DELETE) and no property that I could set that would tell BC to post the invoice.  I'm working in .NET by the way, so no AL please.

  • Suggested answer
    JAngle Profile Picture
    159 on at

    Check this out: www.kauffmann.nl/.../

    .NET resources on this might be harder to come by but see what others come up.

  • HPC Keith Profile Picture
    87 on at

    Thanks for the link!  I'll give it a read.

  • Suggested answer
    Ethan-Sorenson Profile Picture
    225 on at

    Keith,

    I wrote a custom API page in AL that gives more advanced functions than what is available in bound actions. Depending how technical you want to get it may be worth investigating.

    https://github.com/ethan-sorenson/PostOrdersWebService

  • HPC Keith Profile Picture
    87 on at

    Do you know of a good resource that walks you through how to publish API pages?  I've gone through all of the Microsoft Docs site and it seems like there are headings that say that the section is about how to publish them, but there's no information.  We're using the Dynamics 365 hosted version of BC and the only examples I've seen are for locally hosted instances.  Your API page looks fantastic, but I have no clue what to do with it :-(

  • Ethan-Sorenson Profile Picture
    225 on at

    This code requires you to add a custom extension to BC. Then you can publish the API page like any other web service.

    In theory you should be able to just upload the .app file to BC as an extension.

  • HPC Keith Profile Picture
    87 on at

    Through this interface?

    pastedimage1603119278695v1.png

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 674 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 362 Super User 2026 Season 2

#3
AndrewThomas81 Profile Picture

AndrewThomas81 359 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans