I've got plenty of experience working on site scraping, including with a major price comparison site in the UK where I wrote customisable scrapes for many major global retailers. As part of my other projects, I've built up a good knowledge of both how to best scrape sites and how site operators try and avoid their sites being scraped, so I can bring vital experience which is often overlooked when building new scrapes.
To meet your requirements, I would build a script that is clearly commented and formatted with modular components for the login, navigation to order history and navigation through history sections (where relevant).
All code I write is also carefully checked to remove or mitigate any issues from malformed content coming from the sites - e.g. that could be used to create security issues in your apps or your own code. This would include handling exceptionally large responses from the sites (for example, if a user had 1,000s of items in their order history).
Where possible I'll minimise the use of external modules and libraries to reduce overhead and improve speed.
I would also liaise with you to determine what format(s) you'd like the scrape to output data in and what the best way (for your platform) to handle errors is.
Feel free to contact me for more information on my approach or industry experience.