Skip to main content

Notifications

Announcements

No record found.

Supply chain | Supply Chain Management, Commerce
Suggested answer

Retail Server API Call ends with Commerce Exception "The channel does not exist or was not published" with Postman

Posted on by 282

Hi,

I completed all the authentication steps to be able to generate an access token and call the Retail Server API.

I am actually able to call the Get Order History Odata endpoint provided in Microsot documentation as an example of Odata Call using Postman. I am getting the result on postman without any issues.

Get Order History is working fine as you can see below.

pastedimage1658072945293v2.png

Get Channels is also working fine as you can see blow

pastedimage1658073052076v3.png

Bu when i try to call another Odata endpoint like Get Active Prices or any other endpoint (customer, product ....), i am getting the following exception, can someone please inlight me ?

pastedimage1658071658892v1.png

pastedimage1658073108546v4.png

  • Shafeeque P. Profile Picture
    Shafeeque P. 6,512 Super User 2024 Season 2 on at
    RE: Retail Server API Call ends with Commerce Exception "The channel does not exist or was not published" with Postman

    Could you please  mark Mando's answer as verified so that the status gets updated ?

  • saad nadir Profile Picture
    saad nadir 282 on at
    RE: Retail Server API Call ends with Commerce Exception "The channel does not exist or was not published" with Postman

    That actually resolved my issue, thanks a lot Mando.

    I added the OUN header parameter to the postman request and i was able to get the retail server answer for GetOrderHistory, GetActivePrices, Products/GetById .... so i consider my issue resolved. Thanks again.

  • Mando Profile Picture
    Mando on at
    RE: Retail Server API Call ends with Commerce Exception "The channel does not exist or was not published" with Postman

    For calling "GetActivePrices" you'll have to add the Operating Unit Number for the channel you are intending to use in the call's header.  The header name is "OUN"

  • Suggested answer
    huijij Profile Picture
    huijij 19,811 on at
    RE: Retail Server API Call ends with Commerce Exception "The channel does not exist or was not published" with Postman

    Hi Saad,

    Did you in test environment and did you have access to your Retail Server logs in the Event Viewer which they might also be helpful to figure out the root cause.Please also take a look at the link about accessing Retail server API calls with postman:

    www.youtube.com/watch

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans