Payment in error—Remedy.
If, through error or inadvertence, a person pays any assessment for a local improvement or an installment thereof upon the lands of another, he or she may, after demand and refusal, recover from the owner of such lands, by an action in the superior court, the amount so paid and the costs of the action.