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

Testing published Business Central API

(0) ShareShare
ReportReport
Posted on by

Hi all,

I am testing a webservice created after publishing a page (Job G/L journal) using postman but an getting an error status 401 unauthorized.

When I put the URL on the browser, its responding and asking for credentials which I am actually putting.

How do I get it working on Postman or any other RestClient.

Can I get the payload from this published page?.

RomRyan

I have the same question (0)
  • Suggested answer
    Bharatesh J R Profile Picture
    95 on at
  • Romryan Profile Picture
    on at

    Bharatesh J R,

    I have  followed up link 1 but still the error is there.

    Link 2 is not opening. Its only showing runtime error. 

  • Suggested answer
    Bharatesh J R Profile Picture
    95 on at

    Hi Romryan,

     In Postman there is Authorization tab select the type as Basic Auth, and specify the credentials of Business central.

    pastedimage1603165034403v1.png

  • Romryan Profile Picture
    on at

    I have put those credentials but its still not going through. Am still getting Authorization error.

    Below is my xml payload

        <Body>
            <Create xmlns="urn:microsoft-dynamics-schemas/page/customers">
                <Customers>
                    <No>C0005</No>
                    <Name>DONLEY</Name>
                    <Country_Region_Code>KEN</Country_Region_Code>
                    <City>KENTUCKY</City>
                    <Post_Code>[001]</Post_Code>
                    <Phone_No>09230987894</Phone_No>
                    <E_Mail>DONLEY@GMAIL.COM</E_Mail>
                    <Fax_No>[245]</Fax_No>
                    <Location_Code>HQ</Location_Code>
                </Customers>
            </Create>
        </Body>
    </Envelope>
  • Romryan Profile Picture
    on at

    Any idea?.Its still failing.

  • Suggested answer
    Marco Mels Profile Picture
    Microsoft Employee on at

    Hello,

    For productive tenants you need to use OAUTH2.0. as per the docs shared earlier.

    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!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,870 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,138 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 915 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans