All undertakings of bail must be returned by the court or officer by whom taken to the clerk of the court before which the defendant is bound to appear within the same time and in the same manner as is provided by Section 15-10-47 for the return of writs of arrest.