When a sheriff, coroner, county or town treasurer, or other officer, collects or receives any money by virtue or under color of his office, and on demand fails to pay the same to the person entitled to require the payment thereof, the person thereby aggrieved may move for judgment in the superior court against such officer and his sureties for any sum demanded; and the court shall try the same and render judgment at the session when the motion shall be made, but 10 days' notice in writing of the motion must have been previously given.
N.C. Gen. Stat. § 58-76-15