This sample code demonstrate how you can get all invoice from history.
Retrieve the Invoice History object by calling the static get_all method on the Invoice class. Refer the method doc for valid values for keys (See bootstrap.php for more on ApiContext)
get_all
ApiContext
List Invoices Sample
This sample code demonstrate how you can get all invoice from history.