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 :
Supply chain | Supply Chain Management, Commerce
Unanswered

How to Authenticate and Call Commerce Scale Unit APIs in Self-Hosted Mode

(4) ShareShare
ReportReport
Posted on by 18
Hi everyone,
I followed this guide to set up the Commerce Scale Unit in self-hosted mode for my local development environment. My goal is developing an extension.
I'm trying to call the following API using Postman:
http://localhost:446/Commerce/Customers('2001')?api-version=7.3
I'm sending the request with the following headers:
- Oun: 068
- No authentication token included
 
However, the request returns a 401 Unauthorized error with the following response:
{
  "TypeName": "UserAuthenticationException",
  "Exception": "{\r\n  \"ErrorResourceId\": \"Microsoft_Dynamics_Commerce_Runtime_AuthenticationFailed\",\r\n  \"LocalizedMessage\": \"A server side error occurred that prevent user from logging on. This may be due to one or more reasons; the user name or password may be incorrect. Please check the server log for detailed information or contact your system administrator.\"\r\n}",
  "CorrelationId": "c899f9b2-86c4-4f1a-bf16-b0cb1d11166a"
}
My questions:
- How can I correctly call the Commerce Scale Unit APIs in self-hosted mode?
- If authentication is required for local development, how can I configure it properly?

Any guidance or references would be greatly appreciated!
Thanks in advance.
Categories:
I have the same question (0)
  • S Gopi Krishna Profile Picture
    633 on at
    You can follow this guide document to properly setup the pre-requisites and to correctly call a CSU API.
     
     
    Please note that this guide uses 'Application' as an authentication method

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 > Supply chain | Supply Chain Management, Commerce

#1
Laurens vd Tang Profile Picture

Laurens vd Tang 301 Super User 2025 Season 2

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 118 Super User 2025 Season 2

#3
Siv Sagar Profile Picture

Siv Sagar 105 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans