import mws, os
access_key = '' #replace with your access key
secret_key = '' #replace with your secret key
seller_id = '' #replace with your seller id
auth_token=""
marketplaceids=''
created_after='2018-12-31'
orders_api = mws.Orders(access_key, secret_key, seller_id, region='US')
orders = orders_api.list_orders(marketplaceids='ATVPDKIKX0DER', created_after='2019-01-01')
MWSError Traceback (most recent call last)
in ()
7 created_after='2018-12-31'
8 orders_api = mws.Orders(access_key, secret_key, seller_id, region='US')
----> 9 orders = orders_api.list_orders(marketplaceids='ATVPDKIKX0DER', created_after='2019-01-01')
10
/usr/local/lib/python2.7/dist-packages/mws/utils.pyc in _wrapped_func(self, *args, **kwargs)
248 # Token captured: run the "next" action.
249 return self.action_by_next_token(action_name, next_token)
--> 250 return request_func(self, *args, **kwargs)
251 return _wrapped_func
252 return _decorator
/usr/local/lib/python2.7/dist-packages/mws/mws.pyc in list_orders(self, marketplaceids, created_after, created_before, lastupdatedafter, lastupdatedbefore, orderstatus, fulfillment_channels, payment_methods, buyer_email, seller_orderid, max_results, next_token)
541 data.update(utils.enumerate_param('FulfillmentChannel.Channel.', fulfillment_channels))
542 data.update(utils.enumerate_param('PaymentMethod.Method.', payment_methods))
--> 543 return self.make_request(data)
544
545 def list_orders_by_next_token(self, token):
/usr/local/lib/python2.7/dist-packages/mws/mws.pyc in make_request(self, extra_data, method, **kwargs)
259 error = MWSError(str(e.response.text))
260 error.response = e.response
--> 261 raise error
262
263 # Store the response object in the parsed_response for quick access
MWSError:
SenderAccessDeniedMissing required MWSAuthToken for Seller.93eb14c8-7f06-4967-981f-9b0e806ffcf8
import mws, os access_key = '' #replace with your access key secret_key = '' #replace with your secret key seller_id = '' #replace with your seller id auth_token="" marketplaceids='' created_after='2018-12-31' orders_api = mws.Orders(access_key, secret_key, seller_id, region='US') orders = orders_api.list_orders(marketplaceids='ATVPDKIKX0DER', created_after='2019-01-01')
MWSError Traceback (most recent call last)
AccessDenied