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

Announcements

News and Announcements icon
Community site session details

Community site session details

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

API test for trial sandbox account

(0) ShareShare
ReportReport
Posted on by 5

Hello,

we have a trial account for BC and want to explore the APIs.

we created a sandbox environment and assign a web access key to the user. However we get:

{
    "error": {
        "code""Authentication_InvalidCredentials",
        "message""The server has rejected the client credentials.  CorrelationId:  d03f5d02-758d-4fd7-8fa8-c319f9e2a63d."
    }
}
are we missing something? is this available in the sandbox for the trial account?
or maybe we need to do an additional setup. We are not using OAuth so we think no additional steps are needed.
Thanks!
I have the same question (0)
  • famorestorres Profile Picture
    5 on at

    sorry the url "api.businesscentral.dynamics.com/.../$metadata"

  • Suggested answer
    Mohamad Vajid Profile Picture
    Microsoft Employee on at

    Hello,

    How are you consuming the API? For e.g. in Postman, browser etc.?

    Your URL seems incorrect. Here is an example of the Customer card API along with the company name:

    api.businesscentral.dynamics.com/.../Customer_Card

  • famorestorres Profile Picture
    5 on at

    We get exactly the same result using the customer card

    {

       "error": {

           "code": "Authentication_InvalidCredentials",

           "message": "The server has rejected the client credentials.  CorrelationId:  3bd0acaf-9beb-4a93-872b-9896f458686a."

       }

    }

    I think the urls are ok, if we change any of the values, we get a different error due to invalid request. My guess is that we are missing something from the BC side

    thanks

  • Mohamad Vajid Profile Picture
    Microsoft Employee on at

    Maybe generate a new web service key and try again?

    What's the username? For e.g ADMIN or someuser@domain.com?

  • famorestorres Profile Picture
    5 on at

    Tied regenerating the web access key already

    User name is MYNAME with authentication email MYNAME@domain.com

    both options get the same error

    We are testing from Postman

  • Verified answer
    Mohamad Vajid Profile Picture
    Microsoft Employee on at

    I think the web service key is not copied correctly. Can you check and verify it again please? If you double click on the web service key field on the user card, it may not select the entire key if there is a special character in somewhere for example a / it would only highlight part of the key. Make sure you are copying the entire key. I have seen this happen before.

    If necessary, copy the key to a notepad and verify that the entire key is as it appears onton user card. It may seem silly but that web service key field acts strange when highlighting it with a double click of the mouse.

  • famorestorres Profile Picture
    5 on at

    Issue is now solved

    1) we copied the web access key from Manage Flows configuration

    2) We also checked there that the environment was Production (also for the trial account)

    Thanks!

  • Mohamad Vajid Profile Picture
    Microsoft Employee on at

    Glad it's resolved. Have a good day.

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,050 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,351 Super User 2026 Season 1

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 1,200 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans