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

How to insert multiple sales lines using web service Api in postman

(0) ShareShare
ReportReport
Posted on by 55

Hi

I am inserting the sales header and sales line using the APi in postman. But in my case, it only inserts the single record of the sales line in one time and when i try to insert multiple sales lines it gives the Bad Error Request so, i need help how can i insert multiple lines using APi in postman?

i exposed the sales order page as an APi.

Sales Line Body:

       {
            "Web_Document_No""116771",
            "Web_Document_Type""Order",
            "Line_No"30000,
            "Type""Item",
            "Web_Item_No""10034",
            "Unit_Price"3000,
            "Quantity"4,
            "Discount"0
        }
i also tried this but i did't work:
    [  
     {
            "Web_Document_No""116771",
            "Web_Document_Type""Order",
            "Line_No"30000,
            "Type""Item",
            "Web_Item_No""10034",
            "Unit_Price"3000,
            "Quantity"4,
            "Discount"0
        },
     {
            "Web_Document_No""116771",
            "Web_Document_Type""Order",
            "Line_No"30000,
            "Type""Item",
            "Web_Item_No""10034",
            "Unit_Price"3000,
            "Quantity"4,
            "Discount"0
        }
   ]
  • Suggested answer
    Nitin Verma Profile Picture
    21,569 Moderator on at
    RE: How to insert multiple sales lines using web service Api in postman

    Hi,

    Please use the below format of your API

    api.businesscentral.dynamics.com/.../companies(ID)$batch

    header:

    Content-Type = Content Type - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=true

    Thanks.

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

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

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

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 2,655

#2
Mansi Soni Profile Picture

Mansi Soni 1,574

#3
YUN ZHU Profile Picture

YUN ZHU 1,453 Super User 2025 Season 1

Featured topics

Product updates

Dynamics 365 release plans