Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Error 401 Unauthorized in POSTMAN - Testing NAV 2018 API

Posted on by 10

Dear experts,

I'm testing the API NAV 2018 cu 2 to integrate with demo e-commerce website. my problem is i cannot connect to the api from using ip or computer name. with chrome everything is fine, however when i tried using POSTMAN it shows error 401. 

6170.22222.png

>>>> this image shows available api when i access via chrome

6170.22222.png

>>>> this is the error when i tried using POSTMAN. i tried to change the authentication type to basic, but not working.

I also have followed the steps in another blogpost by saurav. but the image shown in that post all shows using localhost instead of ip or computer name.

anyone can help???

*This post is locked for comments

  • sanpatHemlock Profile Picture
    sanpatHemlock 5 on at
    RE: Error 401 Unauthorized in POSTMAN - Testing NAV 2018 API

    NTLM authentication works perfect! Thnx.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Error 401 Unauthorized in POSTMAN - Testing NAV 2018 API

    Hi,

    Do you have NST authentication as "Windows"? Try to set it as "NavUserPassword"

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Error 401 Unauthorized in POSTMAN - Testing NAV 2018 API

    Had the same issue, Error 401 when using Postman, but everything worked fine from Chrome. 

    I used NTLM authentication to resolve it. 

    Set Service Tier to "Use NTLM Authentication" (General Section)

    Use Postman (windows application not Chrome extension) and in the Authorization tab select "NTLM Authentication". Enter correct credentials of user in the DB. 

    Hope this helps

    Dave

  • Suggested answer
    Saurav.Dhyani Profile Picture
    Saurav.Dhyani 17,965 Super User 2024 Season 2 on at
    RE: Error 401 Unauthorized in POSTMAN - Testing NAV 2018 API

    Hope this helps!

    saurav-nav.blogspot.in/.../microsoft-dynamics-nav-2018-api-part-3.html

  • Suggested answer
    Andrey Baludin Profile Picture
    Andrey Baludin 3,941 on at
    RE: Error 401 Unauthorized in POSTMAN - Testing NAV 2018 API

    I've run it with Postman only after changing authorization to NTLM on NAV Instance and at Postman. So try this way.

    My experience is here:

    community.dynamics.com/.../how-to-obtain-data-from-nav-standard-apis

  • stevenleo Profile Picture
    stevenleo 10 on at
    RE: Error 401 Unauthorized in POSTMAN - Testing NAV 2018 API

    still not working

    55555.png

    55555.png

    i wonder if i doing something wrong? 

    i tried to deploy another VM in azure, but i'm still facing the same problem.

  • Suggested answer
    Suresh Kulla Profile Picture
    Suresh Kulla 43,745 on at
    RE: Error 401 Unauthorized in POSTMAN - Testing NAV 2018 API

    For the password use the Web Service Access Key. 

    docs.microsoft.com/.../devenv-develop-connect-apps-for-fin

  • stevenleo Profile Picture
    stevenleo 10 on at
    RE: Error 401 Unauthorized in POSTMAN - Testing NAV 2018 API

    @stefano, yes it is identical.

    @suresh, already tried using basicauth, with my administrator user & password. but it is not working.

    42320.4444.png

    42320.4444.png

  • Suggested answer
    Suresh Kulla Profile Picture
    Suresh Kulla 43,745 on at
    RE: Error 401 Unauthorized in POSTMAN - Testing NAV 2018 API

    Check the Headers and specify the Authorization properly. check this link

    www.getpostman.com/.../authorization

  • Suggested answer
    Stefano Demiliani Profile Picture
    Stefano Demiliani 37,162 Most Valuable Professional on at
    RE: Error 401 Unauthorized in POSTMAN - Testing NAV 2018 API

    Is the request Header the same in all two cases (Chrome and Postman)?

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans