How to call base API using Grant type client Credentials in business central

Khush shah 0 Reputation points
2025-04-07T10:52:40.54+00:00

Hi I am try to post base API of sales header using Grant type :- client Credentials
It is generating the token but when I am try to hit the POST method it is giving me the below error

<error xmlns="http://docs.oasis-open.org/odata/ns/metadata">

<code>Unauthorized</code>

<message>The credentials provided are incorrect</message>

</error>
header which I have given
User's image

And When I am try with Grant type :- authorization Code I am getting the token as well as my API is also working
Is there any permission issue which I need to resolve or any other issue.

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
24,288 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.