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

  • Verified answer
    YUN ZHU Profile Picture
    79,326 Super User 2025 Season 1 on at
    RE: Api to send sales orders to business central

    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

  • Suggested answer
    Robyn2018 Profile Picture
    Most Valuable Professional on at
    RE: Api to send sales orders to business central

    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

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,278 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,011 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans