<commit_before>############
Orders
############<commit_msg>Update orders.rst<commit_after>############
Orders
############


Here is a very simple example of how to retrieve a orders from Amazon


.. code-block:: Python

    from mws import mws

    access_key = 'accesskey' #replace with your access key
    seller_id = 'merchantid' #replace with your seller id
    secret_key = 'secretkey' #replace with your secret key
    marketplace_usa = 'ATVPDKIKX0DER'

    orders_api = mws.Orders(access_key, secret_key, secret_key, region='US')
    orders = orders_api.list_orders(marketplaceids=[marketplace_usa], created_after='2017-07-07')
{'fraction_non_alphanumeric': 0.15433070866141732, 'fraction_numerical': 0.014173228346456693, 'mean_word_length': 4.94392523364486, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1268892', 'n_tokens_mistral': 205, 'n_tokens_neox': 193, 'n_words': 56}