@MarkD Thanks for clarifying. Honestly I wouldn't refund it. Your customer already paid you. Sending the money back and asking them to pay twice more, to two accounts, to fix a bank rec on your side is a hard conversation to have, and it's slower than the fix in Acumatica. It's also messier than it looks. Both payments are applied, so before you can refund anything you'd have to record the lump sum as its own payment in the account it hit, refund that, then wait for two new transfers to show up before either of the original payments can match.
I get that the payments were entered the way the customer was supposed to pay. But Acumatica doesn't care what was supposed to happen. The cash account on a payment says which bank has the money, and right now one of them says 38,808 is in a bank that never got it. That's why the feed won't offer it up for matching. Mohammad's suggesting the same thing I did. Void the 38,808 payment on Payments and Applications, put it back in against the account the lump sum actually landed in, apply it to the same invoice, then match the bank line to both payments. The customer never knows.
If that 38,808 really needs to live in the other bank, move it and record a Funds Transfer for it. Then both banks have a line with something behind it.