If, upon the trial of a cause, judgment shall be for the defendant, or if the judgment be for the plaintiff, but for less than the original judgment, the defendant may also have judgment with costs against the plaintiff for such damages as justice shall require, as will reimburse him for moneys applied to the satisfaction of the original judgment and legal interest thereon, and which the plaintiff did not finally recover.
§ 511.230, RSMo