delivered the opinion of the court.
This appeal is from a judgment for money due for goods and merchandise sold by appellee, a foreign corporation, to appellants, entered in default of an affidavit of merits after appellants had elected to abide by their amended affidavit stricken from the files on appellee’s motion.
The basis of the stricken affidavit is that appellee (the plaintiff) could not maintain the suit because at the time of its commencement it was a foreign corporation of the class amenable to the provisions of the act regulating the admission of foreign corporations to do business in this State, and was transacting business in this State without compliance with said act. (Chapter 32, par. 67g, Hurd’s Rev. St. 1916, J. & A. ¶ 2531.)
The record discloses that the motion to strike was allowed mainly, if not wholly, on the ground that the affidavit did not allege that the transaction sued on was not one of interstate commerce. In support of this position appellee urges, and we think correctly, that even though a foreign corporation may be doing business in this State without complying with said act, it can maintain a suit based entirely on an interstate commerce transaction, and that, as under a familiar rule of pleading, the affidavit must be construed most strongly against the pleader, it will be presumed that the transaction sued on was one of that character in the absence of an averment in the affidavit to the contrary. From the force of this contention, appellants seek shelter under the liberal form of pleadings employed in the- Municipal Court. But as they saw fit not to amend their affidavit after the point was raised, and elected to abide by the same after an adverse ruling thereon, they must be held to have accepted the legal issue thus raised.
It was held in Lehigh Portland Cement Co. v. McLean, 245 Ill. 326, that the act in question by its terms applies only to such foreign corporations “as are amenable to the provisions of this act/’ and that foreign corporations engaged in interstate commerce are exempt from the penalties prescribed in section 6 thereof. From that decision and the authorities therein discussed, it is .apparent that compliance with the act is not necessary unless the business referred to therein is done in this State. In the absence of an allegation in the affidavit to that effect, therefore, the contract will be presumed to have been made legally outside of the State (Beale on Foreign Corporations, sec. 255, p. 382), and therefore one of interstate commerce, to which the right to maintain suit for goods sold thereunder is an essential incident. In Sioux Remedy Co. v. Cope, 235 U. S. 197, it was said that “the right to demand and enforce payment for goods sold in interstate commerce is directly connected with, and essential to, such commerce, and the imposition of unreasonable conditions on such right operates as a burden and restraint upon interstate commerce.”
Section 6 of the Act relating to foreign corporations should be given a construction, if possible, not inconsistent with the commerce clause of the federal constitution. We think, therefore, that though a foreign corporation engages in intrastate business without complying with said act, the act should not be construed so as to exclude it from the right to maintain an action to collect money due on an interstate transaction. Language, seemingly to the contrary and broader than the facts justified, has been employed in previous decisions in this court, and similar language is cited from J. Walter Thompson Co. v. Whitehed, 185 Ill. 454. But there the Indebtedness sought to be recovered grew out of contracts entered into in the State of Illinois. In none of these cases was the precise point before the court that is raised here. We think the penalties prescribed by the act apply on only such transactions by foreign corporations as constitute doing business in this State without first complying with the conditions prescribed by the act. Holding as we do, therefore, that in the absence of an averment in the affidavit that the business out of which the cause of action arose was done in this State, the transaction must be presumed to be one of interstate commerce upon which an action will lie in this State even though the corporation may be doing a local business in contravention of the statute, we think the motion striking the affidavit from the files was properly allowed and that the judgment should be affirmed.
Affirmed.