
642 N.E.2d 839 (1994)
267 Ill. App.3d 507
204 Ill.Dec. 938
Don NORTON, Gerald Marlatt, William Knack, Ruth Knack, Jane Reames and All Others Similarly Situated, Plaintiffs-Appellants,
v.
The CITY OF CHICAGO, Datacom System Corporation and Cook County, Defendants-Appellees.
No. 1-92-3963.
Appellate Court of Illinois, First District, Fourth Division.
November 3, 1994.
Rehearing Denied December 2, 1994.
*840 Rick M. Schoenfield, of Schoenfield & Swartzman, Chicago, for appellants.
Susan S. Sher, Corp. Counsel of the City of Chicago, Chicago (Lawrence Rosenthal, Benna Ruth Solomon and Jean Dobrer, of counsel), for appellee The City of Chicago.
Baker & McKenzie, Chicago (Francis D. Morrissey, Thomas F. Bridgman and William Lynch Schaller, of counsel), for appellee Datacom Systems.
Richard W. Burke and Andrew D. James of Burke, Warren & MacKay, P.C., Chicago, for appellee Cook County.
Justice CAHILL delivered the opinion of the court:
This case arises from the payment of a $3 penalty for a parking ticket by the plaintiffs. In addition to the penalty plaintiffs were charged and paid a fine which was the subject of litigation in the related cases People ex rel. Daley v. Datacom System Corp. (1992), 146 Ill.2d 1, 165 Ill.Dec. 655, 585 N.E.2d 51, and Horn v. City of Chicago (7th Cir.1988), 860 F.2d 700. These cases supply the background about the parking tickets.
Plaintiffs filed a two count amended complaint that alleged the City, Cook County, and Datacom were unjustly enriched and violated the Consumer Fraud and Deceptive Business Practices Act (Consumer Fraud Act) (Ill.Rev.Stat.1985, ch. 121½, par. 261 et seq.) by collecting a $3 penalty from each plaintiff. Each defendant filed a motion to dismiss under section 2-615 of the Code of *841 Civil Procedure (Ill.Rev.Stat.1991, ch. 110, par. 2-615), which the trial court granted. In doing so, the court made two rulings.
We affirm the court's first ruling that plaintiffs failed to state a cause of action under count I for unjust enrichment as to defendants Datacom and the City and under count II for violation of the Consumer Fraud Act as to Datacom. Plaintiffs do not appeal the ruling dismissing the City and Cook County under count II. We reverse the court's second ruling that the plaintiffs' complaint is an impermissible collateral attack.
When ruling on a section 2-615 motion, the trial court must consider only the allegations of the complaint (Baughman v. Martindale-Hubbell, Inc. (1984), 129 Ill. App.3d 506, 84 Ill.Dec. 622, 472 N.E.2d 582), and all facts properly pleaded must be taken as true (Fitzgerald v. Chicago Title & Trust Co. (1978), 72 Ill.2d 179, 187, 20 Ill.Dec. 581, 380 N.E.2d 790). Regardless of the reasoning of the trial court, we may affirm its judgment if correct. Material Service Corp. v. Department of Revenue (1983), 98 Ill.2d 382, 387, 75 Ill.Dec. 219, 457 N.E.2d 9.
To state a cause of action for unjust enrichment, a plaintiff must allege the defendant received and unjustly retained a benefit. Drury v. County of McLean (1982), 89 Ill.2d 417, 425-26, 60 Ill.Dec. 624, 433 N.E.2d 666.
The allegation of count I with respect to the City is that:
"[T]he City benefited from the defendants' aforesaid conduct because the County was demanding that the City pay the County three dollars for every ticket that was paid regardless of what amount the City received in payment and regardless of whether an additional three dollar fee was obtained in addition to money received as fines."
This allegation is insufficient to state a cause of action for unjust enrichment. Plaintiffs fail to allege that the City received or retained any portion of the $3 penalty.
The allegation of count I with respect to Datacom is that:
"Datacom benefitted from the defendants' aforesaid conduct because it received a percentage of the money that it collected."
This allegation alone is also insufficient. Plaintiffs must allege specific facts in support of their claim. (See Teter v. Clemens (1986), 112 Ill.2d 252, 256-67, 97 Ill.Dec. 467, 492 N.E.2d 1340.) Here, although plaintiffs allege that Datacom received a percentage of the money collected, they fail to allege that Datacom received and retained a percentage of the $3, which is the subject of this lawsuit.
As to count II, we find that plaintiffs lack standing to bring an action alleging a violation of the Consumer Fraud Act because they are not consumers. In Steinberg v. Chicago Medical School (1977), 69 Ill.2d 320, 13 Ill.Dec. 699, 371 N.E.2d 634, the court noted that the Consumer Fraud Act is, "An Act to protect consumers and borrowers and businessmen against fraud, unfair methods of competition and unfair or deceptive acts or practices in the conduct of any trade or commerce * * *." A "consumer" is "any person who purchases or contracts for the purchase of merchandise * * *." (Steinberg, 69 Ill.2d at 328, 13 Ill.Dec. 699, 371 N.E.2d 634, citing Ill.Rev.Stat.1973, ch. 121½, par. 261(e).) The court held that the Consumer Fraud Act did not apply to the plaintiff's action because plaintiff and those he represented were applicants to a medical school, not consumers.
In the related case of Daley, the court allowed the plaintiff's Consumer Fraud Act count to withstand a section 2-615 motion. The Daley court distinguished Steinberg on the grounds that the plaintiff in Daley was the State's Attorney who "is not limited regarding whose interests she or he may seek to protect." Daley, 146 Ill.2d at 31-32, 165 Ill.Dec. 655, 585 N.E.2d 51.
Here, the plaintiffs are a group of private citizens who allegedly committed parking violations. They are not consumers, and we find that the holding in Steinberg controls resolution of the issue.
We next address the trial court's second ruling that plaintiffs' complaint is an impermissible collateral attack. The court noted that the Chicago Municipal Code (Chicago Municipal Code § 27-387(b) (1963)) provided *842 plaintiffs three ways to dispose of the parking tickets: (1) by trial; (2) by official action by a municipal judge; or (3) by payment of the fine and penalty to the Clerk of the Circuit Court of Cook County. The court then reasoned that "if plaintiffs acted in accordance with one of the three options their traffic ticket cases were deemed disposed of by the Court and were, therefore, final judgments." The court ruled that "plaintiffs' cases were deemed disposed of when they paid their respective fines, and this disposal was the equivalent of a final judgment."
A judgment rendered by a court having jurisdiction of the parties and the subject matter is not subject to attack in a collateral action. But before we can apply the doctrine of collateral attack, a final judgment on the merits is required. The record before us is unclear whether final judgments were ever entered by the traffic court in these cases.
A section 2-615 motion to dismiss for failure to state a cause of action attacks the legal sufficiency of a complaint. (Kolegas v. Heftel Broadcasting Corp. (1992), 154 Ill.2d 1, 8, 180 Ill.Dec. 307, 607 N.E.2d 201.) A motion to dismiss a cause of action because it is barred by a previous judgment is properly brought under section 2-619 of the Code of Civil Procedure (Ill.Rev.Stat.1991, ch. 110, par. 2-619). While improper labeling is not always fatal, it will require reversal if the nonmovant is prejudiced by the error. (Premier Electrical Construction Co. v. LaSalle National Bank (1983), 115 Ill.App.3d 638, 71 Ill.Dec. 481, 450 N.E.2d 1360.) We find that the trial court erred as a matter of law in finding that the traffic court entered final judgments in these cases. Plaintiffs were prejudiced by this error. The County was not required to offer proof of final judgments, and plaintiffs were forced to forego presenting affidavits to support their contention that the traffic court did not enter final judgments. We reverse the dismissal of the County under count I and remand for further proceedings.
Affirmed in part and reversed in part and remanded.
JOHNSON, J., concurs.
HOFFMAN, P.J., dissents.
Presiding Justice HOFFMAN, concurring in part and dissenting in part:
For the same reasons set forth by the majority, I concur in: (1) affirming the dismissal of count I against the City; (2) affirming the dismissal of count II against Datacom; (3) reversing the trial court's holding that the plaintiffs' complaint was barred under the collateral attack doctrine; and (4) reversing the dismissal of count I against Cook County. I write separately only to register my dissent from affirming the dismissal of count I against Datacom.
In addition to its erroneous application of the collateral attack doctrine, the trial court also found that the plaintiffs could not prove that Datacom received and retained the $3 fees which are the subject of this litigation or that it was unjustly enriched and, as a consequence, dismissed count I of the plaintiffs' amended complaint against Datacom. In affirming the dismissal of count I against Datacom, the majority holds that the plaintiffs failed to allege that Datacom "received and retained a percentage of the $3.00 [court cost or mailing fee], which is the subject of this lawsuit."
As it relates to count I of the plaintiffs' amended complaint against Datacom, this case comes to this court on review from a dismissal pursuant to section 2-615 of the Code of Civil Procedure (Ill.Rev.Stat.1991, ch. 110, par. 2-615). In ruling on a motion to dismiss brought pursuant to section 2-615, the court must take all well-pled facts as true (Steinberg v. Chicago Medical School (1977), 69 Ill.2d 320, 13 Ill.Dec. 699, 371 N.E.2d 634; Miner v. Gillette Co. (1981), 87 Ill.2d 7, 56 Ill.Dec. 886, 428 N.E.2d 478), and must draw all reasonable inferences from those facts which are favorable to the pleader (Your Style Publications, Inc. v. Mid Town Bank & Trust Co. (1986), 150 Ill.App.3d 421, 103 Ill.Dec. 488, 501 N.E.2d 805). The only question presented to the court on such a motion is whether the challenged pleading alleges facts which state a cause of action. The motion has nothing to do with whether the plaintiffs can prove those allegations.
*843 I disagree with the majority's reading of count I of the complaint. In paragraph six, the plaintiffs allege that Datacom sent the notices which demanded payment of the past due parking tickets along with the $3 fee; in paragraph eight, the plaintiffs allege that they and approximately 330,000 others paid the sums demanded; in paragraph 27, they allege that the notices resulted in the collection of more than $2.7 million attributable to the $3 fees; and in paragraph 29, the plaintiffs allege that Datacom received a percentage of the money that it collected. From my reading of count I of the plaintiffs' amended complaint, the only reasonable inference that can be drawn from the facts pled is that Datacom received a percentage of both the fines and $3 fees collected.
To arrive at its conclusion that the plaintiffs could not prove Datacom received or retained the $3 fees, the trial court, responding to an argument made by Datacom and the decision in People ex rel. Daley v. Datacom Systems Corp. (1991), 146 Ill.2d 1, 165 Ill.Dec. 655, 585 N.E.2d 51, found that Datacom only received up to 42% of the parking fines and not a percentage of the fees at issue. Whatever the source of the information upon which the trial court relied, suffice it to say that it was dehors the face of the complaint under attack and should not have been considered in ruling on Datacom's section 2-615 motion (Mutual Tobacco Co. v. Halpin (1953), 414 Ill. 226, 111 N.E.2d 155; Louis v. Barenfanger (1966), 81 Ill.App.2d 104, 226 N.E.2d 85, aff'd (1968), 39 Ill.2d 445, 236 N.E.2d 724).
In my view, when all of the well-pled facts alleged by the plaintiffs in count I of their amended complaint are taken as true and all reasonable inferences favorable to the plaintiffs are drawn from those facts, count I states a good and sufficient cause of action for unjust enrichment against Datacom. Therefore, I dissent from the majority's affirmance of the dismissal of count I against Datacom.
