President Trump lost an appeal Friday to block the US House of Representatives from subpoenaing his financial records.

In a 2-1 decision by the US Court of Appeals, judges rejected Trump’s bid to stop his longtime accounting firm Mazars LLP from having to hand over the documents, including tax returns.

The House Oversight Committee subpoenaed Mazars in April — prompting a lawsuit from the president, who said the move had “no legislative purpose.”

“Contrary to the President’s arguments, the Committee possesses authority under both the House Rules and the Constitution to issue the subpoena, and Mazars must comply,” Judge David Tatel wrote.

He added, “We conclude that in issuing the challenged subpoena, the Committee was engaged in a ‘legitimate legislative investigation.'”

Friday’s ruling, which affirms a lower court’s decision, means Congress can seek eight years of Trump’s business records.

Trump’s lawyers can still appeal the decision before it goes into effect.

The commander-in-chief is separately fighting Manhattan District Attorney Cyrus Vance on enforcing a similar subpoena against Mazars as part of his office’s criminal investigation.

An appeals court granted Trump’s request for a temporary stay pending a review of the case earlier this week.

The court is expected to hear arguments in that case on Oct. 23.

With Post wires