web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

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

News and Announcements

Season of Giving Solutions is Here!

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,638

#2
YUN ZHU Profile Picture

YUN ZHU 837 Super User 2025 Season 2

#3
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 704 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans