This sample code demonstrate how you can delete an invoice.
Delete invoice object by calling the delete method on the Invoice class by passing a valid notification object (See bootstrap.php for more on ApiContext)
delete
ApiContext
Delete Invoice Sample
This sample code demonstrate how you can delete an invoice.