Hello there, YvonneSmit.
I can show you how to record expenses and refund in QuickBooks Online.
You can create an Expense and Deposit on the same account to offset the amount paid and refunded. Here's how:
To create a deposit for the refund, here's how:
If you're referring to a supplier refund, you can use this article about handling supplier credits and refunds in QuickBooks Online: How do I handle supplier credits and refunds?.
Let me know if you have other questions. Take care and have a great day!