You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to use below mws api using this module. But getting Access Denied error. But things are working fine if I use the same api with same parameters using scratchpad.
var amazonMws = require('amazon-mws')('AWS_ACCESS_KEY_ID','Sec_key');
Hi,
I am trying to use below mws api using this module. But getting Access Denied error. But things are working fine if I use the same api with same parameters using scratchpad.
var amazonMws = require('amazon-mws')('AWS_ACCESS_KEY_ID','Sec_key');
amazonMws.products.searchFor({
'Version': '2011-10-01',
'Action': 'GetLowestPricedOffersForSKU',
'SellerId': 'SellerID',
'MWSAuthToken': 'authtoken',
'MarketplaceId': 'A21TJRUUN4KGV',
'SellerSKU': 'skuid',
'ItemCondition': 'New'
}, function (error, response) {
if (error) {
console.log('error ', error);
return;
}
console.log('response ', response);
});
Response:
error { Type: 'Sender',
Code: 'AccessDenied',
Message: 'Access denied',
Headers:
{ 'x-mws-quota-max': 'unknown',
'x-mws-quota-remaining': 'unknown',
'x-mws-quota-resetson': 'unknown',
'x-mws-timestamp': '2018-09-22T16:16:09.909Z',
'content-type': 'text/xml',
'content-charset': 'unknown',
'content-length': '294',
'content-md5': 'unknown',
date: 'Sat, 22 Sep 2018 16:16:09 GMT' },
StatusCode: 401,
RequestId: '3511e62f-29e6-4112-bcb1-c938de071192' }
The text was updated successfully, but these errors were encountered: