How to record the invoice and payment made for auto services which belongs to other company?

in Bookkeeping
For example, 3 different companies A, B, C. Company B paid for services to company C using company card but the services belongs to company A and company C issued an invoice to company B. Now, I have to recall the payment from company A. Can I issue an invoice to company A for the same amount charged company B by company C. How to record transactions? Thank you.
Comments
Company A - Debit
Bank - Credit.
+91-98642-72826
Guwahati, Assam, India