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

Api to send sales orders to business central

(0) ShareShare
ReportReport
Posted on by 35

Hello readers, the client of an application asked me for an api so that he can register orders to business central, this api must register the header and many lines of detail

Business central currently handles the api header and detail api in 2 different apis but through an id connection, but the customer only needs one api so that he can make the record of his orders

Does Alguine know of a method? thanks for your help 

I have the same question (0)
  • Suggested answer
    Robyn2018 Profile Picture
    Most Valuable Professional on at

    Hi Gabriel,

    You can handle both (header and lines) in the same API using the expand command.

    With this command you can obtain the sales Orders and their lines.  

    GET

    api.businesscentral.dynamics.com/.../salesOrders

    pastedimage1661100273695v1.png

    The same with the POST.  In the body, you must include the lines.

    Best regards,

    Roberto

  • Verified answer
    YUN ZHU Profile Picture
    99,086 Super User 2026 Season 1 on at

    Hi, just adding some info

    https://www.kauffmann.nl/2020/07/01/deep-insert-with-business-central-apis-part-2/

    Hope this helps as well.

    Thanks.

    ZHU

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