Catalysis of the transfer of a phosphorus-containing group from one compound (donor) to a carboxyl group (acceptor).