27-16-601. Deposit of money by defendant with sheriff. The defendant may, at the time of arrest, instead of giving bail, deposit with the sheriff the amount mentioned in the order. If the amount of bail is reduced, as provided in this chapter, the defendant may deposit the amount instead of giving bail. In either case, the sheriff shall give the defendant a certificate of the deposit made, and the defendant must be discharged from custody.