Welcome to the Community! Let's work together to recover your accidentally deleted transaction in QuickBooks Online.
To recover deleted transactions in QuickBooks, we utilize the audit log and simply re-enter the information in a new transaction. Here's how to access the audit log:
Click the Gear icon.
Under Tools, select Audit log.
Locate the transaction you wish to re-enter, and press View.
From there, you can take note of the details and recreate the invoice to get your entry back.