Can I recover a deleted invoice in QuickBooks online?

You cannot restore the deleted invoice. You can print out or save the transaction report so that you have the information to re-enter as a new invoice.