Ancient historians who visited India offer the closest linguistic equivalence in Indian society and slavery in other ancient civilizations. For example, the Greek historian Arrian, who chronicled India about the time of Alexander the Great, wrote in his Indika,[8]
The Indians do not even use aliens as slaves, much less a countryman of their own.
— The Indika of Arrian[8]
.....
......
According to Arthasastra, anyone who had been found guilty of nishpatitah (Sanskrit: निष्पातित, ruined, bankrupt, a minor crime)[14] may mortgage oneself to become dasa for someone willing to pay his or her bail and employ the dasa for money and privileges.[5][6]
Shamasastry's 1915 foundational translation of the Arthasastra describes the rights of the dasa, confirming Kangle's contention that they were quite different than slaves in other ancient and medieval civilizations. For example, it was illegal to force a dasa (slave) to do certain types of work, to hurt or abuse him, or to commit rape against a female dasa.[6]
Employing a slave (dasa) to carry the dead or to sweep ordure, urine or the leavings of food; keeping a slave naked; hurting or abusing him; or violating the chastity of a female slave shall cause the forfeiture of the value paid for him or her. Violation of the chastity shall at once earn their liberty for them.
— Arthashastra, Translated by Shamasastry[6]
When a master has connection (***) with a pledged female slave (dasa) against her will, he shall be punished. When a man commits or helps another to commit rape with a female slave pledged to him, he shall not only forfeit the purchase value, but also pay a certain amount of money to her and a fine of twice the amount to the government.
— Arthashastra, Translated by Shamasastry[6]
A slave (dasa) shall be entitled to enjoy not only whatever he has earned without prejudice to his master's work, but also the inheritance he has received from his father.
— Arthashastra, Translated by Shamasastr
You must be registered for see links
Note that Arthshastra was written in 2nd and expanded in third century and now scroll down that link and compare it medieval laws for slaves