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 :
Business Central forum

API with basic authentication does always give error: "The server has rejected the client credentials"

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

The following may not be well known in the partner channel hence the sharing to the community. So we do have Business central in cloud. We have an API with basic authentication.This always gives this error:

{ "error": { "code": "Authentication_InvalidCredentials", "message": "The server has rejected the client credentials." } }


We use endpoint: api.businesscentral.dynamics.com/.../v1.0

This scenario was happening with a Delegated User Account (partner account). The answer from the product group was:

Delegated admins cannot use web service key as we cannot resolve their license without OAuth.

Categories:
  • Suggested answer
    Marco Mels Profile Picture
    Microsoft Employee on at

    Answered, not a question

  • jland555 Profile Picture
    75 on at

    Having the same issue, but not using a delegated partner account.  I've tried both the web access key and the regular password for the users, and it's still rejecting the credentials.  Thoughts?  This is a cloud install of Business Central (not on-prem.)

  • Verified answer
    Rehan Satti Profile Picture
    638 on at

    Hi Guys,

    I am writing to this post because it might help some one else.

    I was facing the same issue. although i am using the right credentials. I have also changed the web service key few times. but still getting the below error.

    pastedimage1591173504169v1.png

    The reason was reveled latter. The Chrom has cashed the web-service key and sending the old keys while requesting the api from browser.  ALl i did it go to setting of Chrom browser, search the password  and again the search the api and if you find any saved password. Just delete it and you are good to go. 

    Thanks

  • Suggested answer
    Marco Mels Profile Picture
    Microsoft Employee on at

    Hello Rehan,

    This is great information and good to know for us within support as well.

    Thanks a lot for this great addition to the original post.

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Business Central

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans