You can create a vendor refund, Scott Eby. It will help you return the money in the account.
First, you'll have to enter a vendor credit. It will ensure the credit hits the expense account you used for the vendor.
Next, deposit the money you got.
Lastly, connect the deposit to the vendor credit. It will ensure the transactions are accurately recorded.
For the detailed steps, please check this article on how to enter a refund from a vendor.
Reach out to the Community again if you have other concerns. We're just one post away.