Closed AlexDombrovsky closed 1 year ago
clientID and clientSecret should be as follows.
Please ref. followng document.
Mike Shimura
@AlexDombrovsky I have done migration before. Let me know if you need any support. happy to help you.
This is a very old issue that is probably not getting as much attention as it deserves. We encourage you to check if this is still an issue after the latest release and if you find that this is still a problem, please feel free to open a new issue and make a reference to this one.
closed for inactivity
I downloaded the SP API code using Java SDK and created an AmazonSpApi client that calls GetAuthorizationCode(sellingPartnerId, developerId, mwsAuthToken) from the generated AuthorizationApi class. But I cannot change authentication from MWS to SP API because I cannot get AccessToken in the method below. RestClient.Execute() returns
StatusCode: Unauthorized {\"error_description\":\"Client authentication failed\",\"error\":\"invalid_client\"}
Here are the LWAAuthorizationCredentials values I pass:
{"grant_type":"client_credentials","refresh_token":null,"client_id":"AKIA**********","client_secret":"JBz4OS************","scope":"sellingpartnerapi::migration"}
Does anyone know how to fix this? My assumptions are: