After you file

Our children and I have always had social security numbers only my wife never had an itin and we will be submitting the w7 with 2023 tax return next month. I was asking once she has the itin what will happen if I file for previous years we were married but never filed or years that I did not amend if I filed as head of household or single during those times and now I want to file jointly with her itin. Will the IRS accept if I claim child tax credit or will return get rejected?