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
Suggested Answer

Init transaction by consuming Retail Server Api using Postman throw UserAuthorizationException

(0) ShareShare
ReportReport
Posted on by 40

Hi, 

I started to consume some Retail Server APIs related to product using postman and I'm able to receive result but when I tried to consume an API to init transaction I received this error 

pastedimage1668171950745v1.png

I need help please

Best regards

I have the same question (0)
  • Suggested answer
    Ana Teles Profile Picture
    on at

    Hi Ghofrane,

    It seems you are not authenticated correctly, please check both documents below to check what you need to do:

    learn.microsoft.com/.../consume-retail-server-api

    learn.microsoft.com/.../arch-auth-flow

  • Ghofrane Profile Picture
    40 on at

    Hi Ana,

    Sorry for the delay, but I still wait for the client to give me access to check the app registration in Azure portal, But what is strange is that I can consume Retail server APIs related to product like Search Product By Text without receiving any errors, it only blocks when I do init transaction in order to start an empty transaction to be able to add products to this transaction after that.

    knowing that I use the same Azure credentials App provided by the client in the two scenario

  • Ghofrane Profile Picture
    40 on at

    Hi Ana,

    I checked the App registration created by the client on Azure portal and I modified them to respect the steps in learn.microsoft.com/.../consume-retail-server-api 

    But always I receive the same error when trying to init transaction,

    App registration for Retail server :

    pastedimage1668702975011v1.png

    App registration for the client :

    pastedimage1668703078963v2.png

    the app registred in Finance and operations identy provider 

    pastedimage1668703654684v5.png

    the error on Postman

    pastedimage1668703206016v3.png

    and here I can get response ( I use the same Access token)

    pastedimage1668703318959v4.png

    I need help please!

    Regards

  • Ghofrane Profile Picture
    40 on at

    I want to show you this message

    pastedimage1668732970704v1.png

  • Suggested answer
    Ana Teles Profile Picture
    on at

    Hi Ghofrane,

    Please create a support request so we can help you further.

  • Ghofrane Profile Picture
    40 on at

    I found the cause, Post should be used instead of GET in Postman ( please see screenshot bellow)

    pastedimage1668804510816v1.png

  • RS-30070451-0 Profile Picture
    on at
    Hi, we are looking to consume APIs in Postman for a client (Retail client) using MS Dynamics 365 F&O for a 3rd Party Application and have followed the following documentation:
     
    However, we are facing the following error:
     
    Microsoft_Dynamics_Commerce_Runtime_AuthorizationFailed\",\r\n  \"LocalizedMessage\": \"The user is not authorized to perform this operation
     
    We have tried multiple steps (from a lot of sources) and continue to face this error.
     
    Would you know how to resolve this?

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 299 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... 117 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans