Hello, julian22! Welcome to the QuickBooks Community forum. I understand that you need to restore a deleted transaction in QBO.
I'd like to let you know that when a transaction like an invoice is deleted, it's removed permanently from the system.
As a work around, you can run the Audit Log report. This will display details for invoices, bills, and other forms that have been erased. Referencing the Audit Log, you can view data such as the invoice number, date, customer name, line items, and other details.