Hi, @istracion-vamosb. Let me provide some information about refunding a security deposit in QuickBooks.
There are two ways to enter security deposits. You can either create a liability account to report a product/service item or post a bank deposit directly to the liability account. If you post security deposits you receive to a liability account, the proper way to record this is to issue a check for the portion to be refunded.
I'll guide you on how to issue a check:
Select +New.
Under Vendors/Vendors, select Check.
Enter the check information.
In the Account details section, select the liability account you use for security deposits from the Account column dropdown list.
Select Save and Close.
Then, record an invoice for the remaining amount, and then enter a credit memo/adjustment to correct the liability account. For the detailed process, please see this link: Refund a security deposit. Please know that the article given is for the US version but is still applicable for international or other regions.