Recent Posts

Our US based ecommerce seller wanted to integrate thier back-office to download Orders from Amazon automatically and storing it in thier database.oo
For the uninitiated, below is the basic selling process for a third-party seller on Amazon:

  1. Our client loads inventory and product information onto their Amazon storefront.
  2. Customers purchase products from the seller on Amazon.
  3. Our client sync orders from Amazon every 30 minutes.
  4. Application validate the orders and save it in database.
  5. Client fulfill the orders and send Shipment notification to Amazon.

In this blog series, we will walk through the recent Amazon MWS integration we performed, detailing the pitfalls we encountered and how we handled them.
For this blog series, we assume that you already know about the Amazon Data Protection policy, if not you can walk through our earlier post on Amazon Data Protection policy.

Before we get started, please take a look at the MWS documentation for Order Feeds for available actions.

Since the client back-office was developed using Java, so we decided to Java library provided by Amazon for each of their endpoints.

The detailed working of the above flowchart:

  • Polling Amazon every 30 minustes for Orders with some parameters like Created Date after, Order Status.
  • Amazon respond with list of Orders, if any in XML format.
  • Parsing and storing Orders in customer database.
  • When polling the ListOrders action, the response contains a field called NextToken, which if not empty will be used to poll ListOrdersByNextToken for the remaining orders. However, if a NextTokenCorrupted error occurs, the entire chain of calls to ListOrders and ListOrdersByNextToken will need to be repeated to retrieve the remaining orders.

Our development team has extensive experience building web applications using Amazon’s MWS APIs. We have worked with order processing, inventory tracking, shipment tracking, and repricing.
To get started, just contact Tirnav Solutions!


  1. Andrew Green October 31, 2020 at 7:37 am

    Would you be able to share the google script for this example please?

  2. Andrew Green October 31, 2020 at 8:13 am

    Don’t worry, I’ve worked it out!

Leave A Comment