Section 217 in The Indian Contract Act, 1872

Title: Agent's right of retainer out of sums received on principal's account.

Description: An agent may retain, out of any sums received on account of the principal in the business of the agency, all moneys due to himself in respect of advances made or expenses properly incurred by him in conducting such business, and also such remuneration as may be payable to him for acting as agent.

Title: Agent's duty to pay sums received for principal.

Description: Subject to such deductions, the agent is bound to pay to his principal all sums received on his account.

Title: When agent's remuneration becomes due.

Description: In the absence of any special contract, payment for the performance of any act is not due to the agent until the completion of such act; but an agent may detain moneys received by him on account of goods sold, although the whole of the goods consigned to him for sale may not have been sold, or although the sale may not be actually complete.

Title: Agent not entitled to remuneration for business misconducted.

Description: An agent who is guilty of misconduct in the business of the agency, is not entitled to any remuneration in respect of that part of the business which he has misconducted. Illustrations (a) A employs B to recover, 1,00,000 rupees from C, and to lay it out on good security. B recovers the 1,00,000 rupees; and lays out 90,000 rupees on good security, but lays out 10,000 rupees on security which he ought to have known to be bad, whereby A loses 2,000 rupees. B is entitled to remuneration for recovering the 1,00,000 rupees and for investing the 90,000 rupees. He is not entitled to any remuneration for investing the 10,000 rupees, and he must make good the 2,000 rupees to B. (b) A employs B to recover 1,000 rupees from C. Through B's misconduct the money is not recovered. B is entitled to no remuneration for his services, and must make good the loss.

Title: Agent's lien on principal's property.

Description: In the absence of any contract to the contrary, an agent is entitled to retain goods, papers and other property, whether movable or immovable of the principal received by him, until the amount due to himself for commission, disbursements and services in respect of the same has been paid or accounted for to him.