Any person to whom any domesticated animal shall be entrusted by the owner thereof or pursuant to his authority for the purpose of feeding, herding, pasturing, or ranging shall have a lien thereon for the amount that may be due for such service and supplies except as otherwise provided in § 40-27-2. Such lien shall entitle the person to retain possession of such domesticated animals until the amount due is paid.
SDCL 40-27-1