amazon-pay-sdk-java icon indicating copy to clipboard operation
amazon-pay-sdk-java copied to clipboard

The Solution Provider : xxxx is not authorized for getting the status of provided merchant : xxx

Open saraswat40 opened this issue 5 years ago • 5 comments

We are trying to retrieve the status of a merchant account like so:

Config conf = new PayConfig()
                .withAccessKey(AMAZONPAYACCESSKEY)
                .withSecretKey(AMAZONPAYSECRETKEY)
                .withCurrencyCode(CurrencyCode.USD)
                .withSandboxMode(false)
                .withRegion(Region.US);

		Client client = new PayClient(conf);
		
		final GetMerchantAccountStatusRequest request = new GetMerchantAccountStatusRequest();
		request.setSellerId("XXXX");
		request.setMWSAuthToken("XXXXXXX");
		
		final GetMerchantAccountStatusResponseData resp = client.getMerchantAccountStatus(request);

Please let us know how to resolve this.

saraswat40 avatar May 10 '20 17:05 saraswat40

Try making your API call manually using the MWS scratchpad here: https://mws.amazonservices.com/scratchpad/index.html

"API Section" should be set to "Off-Amazon Payments" "Operation" should be set to "GetMerchantAccountStatus".

If you get the same error message when using the scratchpad, that eliminates any potential issues with your code or the SDK code.

If you get the same issue with the scratchpad, and if you're certain all the keys are correct, it's possible that the auth token may have been revoked or has expired on the seller account. To further troubleshoot that, you'll need to submit a new case to our team: https://sellercentral.amazon.com/cu/contact-us?ref_=py_contactus_shel_xx and select "Technical troubleshooting".

bjguillot avatar May 11 '20 17:05 bjguillot

@bjguillot Yes, I am able to reproduce the issue on mws scratchpad as well. On the link you provided, I have another case open related to invalid ipn notifications since Mar 27, thats why I came here for help :)

saraswat40 avatar May 16 '20 16:05 saraswat40

@saraswat40 can you provide the Case # for your open case?

bjguillot avatar May 16 '20 16:05 bjguillot

@bjguillot 6903997931. Thanks

saraswat40 avatar May 16 '20 17:05 saraswat40

OK, just sent an email to the email address used on the case. Once I get your email reply, we can move troubleshooting for this issue as well as your IPN issue over to email and I'll close this issue.

bjguillot avatar May 16 '20 17:05 bjguillot