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

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
        }
   ]
I have the same question (0)
  • Suggested answer
    Nitin Verma Profile Picture
    21,812 Moderator on at

    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

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 April 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,029 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,226 Super User 2026 Season 1

#3
AndrewThomas81 Profile Picture

AndrewThomas81 1,201

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans