Hi there, walterz.
You may consider voiding the payment. This will allow you to reverse the payment and make the invoice open or unpaid again.
Here's how to void the payment:
I'm including an article where you can learn more about voiding or deleting transactions in QuickBooks Online.
Drop a reply below if you have further questions with QuickBooks transactions.