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
Answered

The request passed to the service is not valid

(1) ShareShare
ReportReport
Posted on by 21
 
 
I have followed the instructions here to get a token and make a request to an endpoint. Consume Retail Server APIs in external applications - Commerce | Dynamics 365 | Microsoft Learn
 
I can get a token but whenever I make a request I always get a 400 status and the error /The request passed to the service is not valid/. 
 
I followed the instructions exactly and use the /https://Retail>serverurl/Commerce/Customers('2001')/GetOrderHistory/ example end point with my server url and a valid customer account number. 
 
Why do I get this error? How can I resolve this issue?
 
I have the same question (0)
  • Shafeeque P. Profile Picture
    6,533 Moderator on at
    There was a similar question in the forum which was answered. Looks like you have to pass the API version as well.  Could you please check if the below would work. 
     
  • Community member Profile Picture
    21 on at
    Hi 
     
    Thanks for the reply.
     
    I am passing the api-version ... /Commerce/Customers('2001')/GetOrderHistory?$top=10&api-version=7.3
     
    If I pass it or not I still get a bad request error... The request passed to the service is not valid
  • Verified answer
    Community member Profile Picture
    21 on at
    We were using an OUN that didn't have access to the database.

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 298 Super User 2025 Season 2

#2
Siv Sagar Profile Picture

Siv Sagar 183 Super User 2025 Season 2

#3
André Arnaud de Calavon Profile Picture

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

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans