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

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.

I have the same question (0)
  • Suggested answer
    JAngle Profile Picture
    133 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

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