Error on OAuth 2.0 connection to soaprouter | Community
Skip to main content
PatrickLittel
March 7, 2025
Question

Error on OAuth 2.0 connection to soaprouter

  • March 7, 2025
  • 2 replies
  • 597 views

Currently still running v7, but soon migrating to v8. I've created an API connection in the Developer Console and I'm able to retrieve a fresh access token from the IMS server.

I'm trying to call the /nl/jsp/soaprouter.jsp by passing the Bearer token in the 'Authorization' header, but I keep getting 'XTK-170019 Access denied'.

 

My SOAPaction is set to dfn:apiCustomers#insertCustomer, which is correct.


SOAP XML is as follows

 

FYI, this request works 'in the old way' when I would be passing a sessiontoken. But as that will be deprecated soon, I was wondering what I'm doing wrong when trying to use Bearer token authorization.
I'd greatly appreciate your help!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

Manoj_Kumar
Community Advisor
Community Advisor
March 11, 2025

Hello @patricklittel  It seems to be working for me. Are you sure the token is valid and the IP is not restricted?

 

 

Manoj  | https://themartech.pro
PatrickLittel
March 11, 2025

Yes, token is valid and IP is whitelisted:

Calling BearerTokenLogon on xtk:session:

IMS profile endpoint shows correct data as well for our instance:

 

 



Sukrity_Wadhwa
Community Manager
Community Manager
March 28, 2025

Hi @patricklittel,

Were you able to resolve this query with the given solution or was this something you were able to figure out on your own or do you still need help here? Do let us know.

Thanks!

Sukrity Wadhwa