r his legal representative may bring an action in any co rt of competent jurisdiction against the officer to whom said tax or license was paid, or against the state; county, municipality or other taxing unit on whose behalf the same was collected, to recover said tax or license or any portion thereof paid under protest.'