Download order list

edited March 2014 in API Vote Up0Vote Down
Hi,

When using the API to download the complete order list this list seems to be limited to the 500 orders with the lowest order_id. It seems to be difficult to download a complete list of all the orders that were placed in your store as soon as you have more than 500 orders (you could download them separate for each status). Due to the orders being sorted based on order_id this may exclude some of the most recent orders if they happen to have a high order_id.

I think this should be modified to include all orders. If this is not desirable from a performance perspective I would suggest that an option be added that allows the user to provide the number of orders that should be downloaded (which could default to 500) and when a limited number of orders are downloaded these should be the most recent orders.

Thanks,
Gerrit

Comments

  • 3 Comments sorted by Votes Date Added
  • Limit has now been added as another parameter.
  • edited March 2014 Vote Up0Vote Down
    It would seem worthwhile to sort orders by date on the server.

    There's also some kind of potential race condition... If someone desires an exact snapshot of his store's inventory with respect to past/future orders, he has to :
    #1 Fetch the list of orders
    #2 Fetch the inventory
    #3 Fetch the list of orders again
    #4 If any new order appeared since #1, go back to #2
    To avoid that situation, the inventory list could just include the ID of the most recent order, assuming inventory/list is protected by a mutex from incoming orders (or the equivalent of a mutex in web-jargon).
Sign In or Register to comment.