Code of Alabama
Article 4 - Effect of Undertaking and Discharge of Bail.
Section 15-13-65 - Return of Cash Deposit Upon Surrender by Defendant.

If money has been deposited instead of bail and at any time before the forfeiture thereof the defendant surrenders himself to the officer to whom the commitment was directed, the court must order a return of the deposit to the defendant upon producing the certificate of the officer showing the surrender.