We are trying to read the product of Magento from Sage X3 using integration methods such as Rest webservices, Node.Js for one of our client. The Magento API endpoints uses 'OAUTH1' type of authorization for authentication of the Rest API requests from the other applications. While trying to send the request from X3, we are getting the below errors.
1) Rest Webservices:
We had created new web service in Sage x3 with the url of the client's Magento Rest API and had called it from the Sage X3 trt file. We had passed the appropriate parameters of 'Oauth1' authentication in the request headers while sending the request from Sage x3, but facing 'Unexpected token in Json' error. Please find the below screenshot for the reference.
2) Similarly trying with the sage x3 syracruse node services, we had created an Node js file for setting up the web api request. As we need to restart the 'Sage x3 Syracruse Node' service from the services to apply the recent changes in the node.js file so that we can send the request from x3 respectively. While sending the request, sage x3 node services were able to fetch the response for the first time but after the first request, when we sent the request time we got the 'nonce is already being used with the consumer' error while fetching the response. Please find the below screenshot for the reference.
It would be great if anyone can help us out to resolve the mentioned issue.
Thanks in advance!!!