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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Business Central API Connection - The credentials provided are incorrect

(0) ShareShare
ReportReport
Posted on by 21

Hi All,

Thanks in advance for anyone that might help me. I've read as many posts as I can find on this subject but unfortunately none of these are helping me.

I have setup POSTMAN and a Python script to access the REST api from Business Central with partial success and i'm confused.

I have setup everything I can find within Azure, the App, all the secrets, client id's etc. I've setup some role permissions and granted consent etc

I have setup POSTMAN, I can retrieve a token successfully which is great and shows I'm using the right information however when I try to use that token and retrieve anything from Business Central it tells me that "the Credentials Provided are incorrect".

The URL i'm trying to get is: https://api.businesscentral.dynamics.com/v2.0/[My TenantID]/Sandbox/api/v2.0/companies

If anyone can help me diagnose and fix the issue id be very grateful.

Thanks

Lee

I have the same question (0)
  • Suggested answer
    DAnny3211 Profile Picture
    11,397 on at
  • AmplioSolutions Profile Picture
    21 on at

    Thanks Daniele,

    I can successfully retrieve a token, I cannot create anything like your post as I don’t have the company to send the request too… hence why I am trying to retrieve the company list.

    I don’t understand why it’s saying my credentials are incorrect

  • Suggested answer
    DAnny3211 Profile Picture
    11,397 on at
  • AmplioSolutions Profile Picture
    21 on at

    Thanks Daniele,

    I have also completed this. My last resort is posting in this forum, if anyone can offer any troubleshooting advice I would be grateful

  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,105 Moderator on at

    Have you checked the API's permissions inside Business Central so it actually can access the company list?

  • YUN ZHU Profile Picture
    95,307 Super User 2025 Season 2 on at

    Hi, I just tested it and it seems to work fine.

    My test endpoint:

    api.businesscentral.dynamics.com/.../companies

    pastedimage1676251460313v1.png

    More details: https://yzhums.com/20690/

    Hope this helps.

    Thanks.

    ZHU

  • AmplioSolutions Profile Picture
    21 on at

    Thank you Inge, I do feel like this is where the issue lies but I'm struggling to pinpoint the problem.

    So I have gone to Azure Active Directory page in business central, created an entry using my Client ID, given it permissions for D365 BUS FULL ACCESS and enabled it. Then clicked the Grant Consent button which successfully granted.

    I'm not sure if there's anything else I need to do? If there is (and i'm hoping there is) I think this will be the missing piece of the puzzle.

    Regards

    Lee

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

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 3,175

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 2,476 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,435 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans