Hi, jehad. I appreciate you asking about retrieving a voided invoice in QuickBooks Online (QBO).
Please know that we don't have a direct option to undo a voided transaction. We can only recreate the invoice using the information from your Audit Log. I'll guide you on how:
Go to the Gear or Settings ⚙️ icon and select Audit Log.
Click the drop-down list for Filter ▼, then select the appropriate user, date, and event(s).
Locate the voided transaction.
Select View under the History column
All the information needed for the transaction can be found on the History of this transaction page.
Using the information there, you can re-enter the transaction with its original transaction date.
Additionally, I'm adding these articles to learn more about managing invoices in QuickBooks:
Once done, follow the steps in these articles on how to mark the invoice as paid: