The New Jersey Attorney General’s Office filed lawsuits Friday against two Florida companies that it said had sold illegal large-capacity firearm magazines to undercover state investigators and failed to comply with subpoenas demanding the records of sale.

The companies are Elite Aluminum Products — conducting business as daytonatactical.com and gunpartsplus.com — and 22Mods4All Inc.

Both companies have refused to turn over documents showing prior sales, despite receiving subpoenas, Attorney General Gurbir S. Grewal said in a statement. The companies appear to have stopped sales of large-capacity magazines in New Jersey after receiving a cease-and-desist letter from Grewal, the statement said.

New Jersey law prohibits the possession and sale of firearm magazines that can hold more than 10 rounds of ammunition. Large-capacity magazines allow a shooter to fire an unusually high number of bullets at one time without having to reload, the statement said.

“The companies we’re going after today have repeatedly stonewalled and withheld evidence from investigators, despite a subpoena,” Grewal said.

Paul R. Rodríguez, acting director of New Jersey’s Division of Consumer Affairs, said in the statement: “Not only do we allege that these companies put New Jersey residents at risk by selling dangerous, illegal weapons into the state, exposing purchasers to criminal liability, they have now failed to comply with our investigation.”

Messages seeking comment from executives at both companies were not immediately returned Friday. The lawsuits were filed in Superior Court in Essex County, N.J.

In June, Grewal had filed suit against a Nevada company, New Frontier Armory, after it ignored a cease-and-desist letter and allegedly sold six large-capacity magazines to an undercover investigator.