Skip to main content

Notifications

Small and medium business | Business Central, N...
Suggested answer

API testing in Postman using OAth2.0. Successful token authentication but credentials error

Posted on by 7

Hi, I’m trying to test an API from business central online with OAuth 2.0
I created the azure app, configured the api permissions, the secrets and all that.
When I enter the values in postman, I get the token but when I call the API I’m getting the 401 error.

/image/

After that, I use the token and try to call the API but I get this error:

 

These are my values:

 

And I’m calling one of the standard APIs that come with business central. I just copy and paste it.

Categories:
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 73,171 Super User 2024 Season 2 on at
    API testing in Postman using OAth2.0. Successful token authentication but credentials error
    Hi, so strange issue, I have not encountered it, I hope the following test can give you some hints.
    Using OAuth to connect Business Central APIs and Web Service in Postman
    https://yzhums.com/20690/
     
    Thanks.
    ZHU
  • Suggested answer
    Rajvi Khushbu Profile Picture
    Rajvi Khushbu 10 on at
    API testing in Postman using OAth2.0. Successful token authentication but credentials error
    Below is a link that may be helpful:
     
     
    If you are still unable to resolve the issue, please let me know, and I can guide you through an alternate solution
     
  • Kevin Roman Profile Picture
    Kevin Roman 7 on at
    API testing in Postman using OAth2.0. Successful token authentication but credentials error
    Sorry, these are the images.
     
    image
     
    image
     
    image

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

New! Quick response templates⚡

Save time with the new custom templates!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 229,993 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans