170. Agent's claim for money had and received.

An agent who has paid money on behalf of his principal to a third person under such circumstances1 that the principal, if the payment had been made by him, would have been entitled to recover the money, may bring a claim in his own name for money had and received against the third person