Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Forums / Commerce forum / Unable to call retail ...
Commerce forum

Unable to call retail server API in 8.1.3

(0) ShareShare
ReportReport
Posted on by 75

Hi

I am trying to call a custom retail server API using MPOS client request/response but facing below error. Any help appreciated.

The Retail Server Request with request id '60fa5bb3-cd6c-3049-b0dd-6533b384dd49' and request url 'd365fo-dev-03-rgdevret.cloudax.dynamics.com/.../GetReturnPayTransactionAction' failed.  Error: Sorry, the server has encountered an error. It is either not available or it can't respond at this time. Please try your request again or contact your system administrator.. Status code 404

POS runtime request of type 'Request.DataServiceRequest.GetReturnPayTransactionActionRequest.GetReturnPayTransactionActionRequest' for extension in package 'Pos_Extensibility_ReturnPaymentTransaction' failed. Error Message: ["{\"number\":0,\"description\":\"\",\"stack\":\"CommerceError\\n   at Error (ms-appx://microsoft.dynamics.retail.pos/Commerce.Core.js:155:21)\\n   at ErrorParser.parseErrorMessage (ms-appx://microsoft.dynamics.retail.pos/Commerce.Core.js:35858:33)\\n   at ODataRequestBase.prototype.parseErrorResponse (ms-appx://microsoft.dynamics.retail.pos/Commerce.Core.js:37456:21)\\n   at RetailServerRequest.prototype.parseErrorResponse (ms-appx://microsoft.dynamics.retail.pos/Commerce.Core.js:37866:21)\\n   at Anonymous function (ms-appx://microsoft.dynamics.retail.pos/Commerce.Core.js:37403:29)\\n   at xhr.onloadend (ms-appx://microsoft.dynamics.retail.pos/Commerce.Core.js:33841:29)\",\"name\":\"CommerceError\",\"_canRetry\":false,\"_errorCode\":\"string_29278\",\"_externalLocalizedErrorMessage\":\"\",\"_handled\":false,\"_formatData\":[],\"_errorTitleResourceId\":\"\",\"_isUserError\":false,\"message\":\"\",\"ErrorCode\":\"string_29278\",\"ExternalLocalizedErrorMessage\":\"\",\"formatData\":[],\"errorTitleResourceId\":\"\",\"canRetry\":false,\"handled\":false,\"isUserError\":false,\"__proto__\":{}}"]

Thanks,

Aniket

  • Community Member Profile Picture
    on at
    RE: Unable to call retail server API in 8.1.3

    Hi Im also facing the issue please let me know if u found any solution

  • D365 Commerce Profile Picture
    5 on at
    RE: Unable to call retail server API in 8.1.3

    Hi Aniket,

    I am facing the same issue as above, Have you fixed the above issue?

    Can you please help me to resolve that issue.

    Thanks,

    Muniyaraj M

  • SergeyP Profile Picture
    2,928 on at
    RE: Unable to call retail server API in 8.1.3

    Navigate to d365fo-dev-03-rg30e348e5d9bef4f8devret.cloudax.dynamics.com/Commerce$metadata, it will display ODATA metadata representing your instance of Retail Server, make sure to wait until full document is loaded into the browser, it might take several seconds to complete. Then search there for the method GetReturnPayTransactionAction you introduced - if you don't see it there it means you didn't really apply your extension in your Retail Server. Since this is test environment I assume you have access to your Retail Server logs in the Event Viewer - have a look at those - they might also be helpful to figure out what went wrong with your customization.

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,202 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,923 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans