If you use bank feeds, you can only match the refund in your bank feed to the credit note it's paying.
Follow our article to match bank transactions from bank feeds or an imported file.