Refund overpayment to third party that paid for customer account
We received a payment from an insurance company for a customer account. The insurance company overpaid for the customer account, and I need to refund the overpayment to the insurance company. I've applied the payment to the customer account and tried to refund the overpayment, but it only allows me to create a refund for the customer, not the insurance company. I've tried a journal entry, but that still leaves the customer's account reflecting in our A/R aging report (thought with a zero balance.) What would be the best way to apply the payment to the customer's A/R and create a refund to the insurance company so everything reflects correctly in our accounts and reports?