Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing required MWSAuthToken for Seller. #110

Open
pphanwang opened this issue Jun 27, 2019 · 0 comments
Open

Missing required MWSAuthToken for Seller. #110

pphanwang opened this issue Jun 27, 2019 · 0 comments

Comments

@pphanwang
Copy link

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:


Sender
AccessDenied
Missing required MWSAuthToken for Seller.

93eb14c8-7f06-4967-981f-9b0e806ffcf8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant