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 :
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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
Mallesh Deshapaga Profile Picture

Mallesh Deshapaga 1,093

#2
Laurens vd Tang Profile Picture

Laurens vd Tang 193 Super User 2026 Season 1

#3
SoumitraforD365 Profile Picture

SoumitraforD365 130

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans