In that case it’s up to you - you can either raise a partial credit for the difference against the invoice and then show it being refunded to your bank - this will create an entry so you’ll need to delete the bank entry that was created from your feed.
The other option would be to credit the invoice in full - hold the balance on the account. Then create an invoice for the corrected amount - you can then use the balance held to pay the new invoice and then the remaining balance you can refund back to your account - again this will create a duplicate entry in your bank so you’ll need to delete the original.