Let me share some information about voiding an invoice in QuickBooks Online (QBO), balloondesigners.
If you void a transaction, the record of it remains in QuickBooks but it won’t affect your books. However, you can still link the payment, and the bank deposit to an invoice once and apply the remaining balance once you create a new one. To receive invoice payment through your customer's bank, you can read this article: Link a bank deposit to an invoice in QuickBooks Online. Here's how to void an invoice:
In the Action column, select the dropdown ▼, then click Void.
To learn more about this one check out this article: Void or delete transactions in QuickBooks Online. You also have the option to see the voided transaction by going to the Report tab. Search Transaction List by Customer, then customize the report. Just in case you want to recreate the invoice, feel free to check out this article for the detailed steps and information: Create invoices in QuickBooks Online.