convert params[:id] to int for membership api