State investigators have subpoenaed Michael Cohen as part of their criminal probe into his old boss President Trump’s nonprofit Trump Foundation.

The New York State Department of Taxation and Finance confirmed the subpoena Wednesday — less than 24 hours after Cohen admitted in court that he paid hush money to two women at Trump’s behest “for the purposes of influencing the election.”

The court summons comes after Cohen’s attorney said his client had information that state and federal investigators might find helpful.

State Attorney General Barbara Underwood in June filed a suit against Trump and some of his family members alleging “persistently illegal conduct” for allegedly using the charity to pay off his debts, decorate one of his golf clubs and help his presidential campaign.

The president cannot pardon people for state crimes.

After he was subpoenaed, Cohen called the state Tax Department — one of the investigating agencies — to set up a time to talk, according to an administration official.

Lawyers for Cohen and Trump did not immediately return requests for comment.

With Post wires