#### The American Ink Co., Respondent, *v.*The Riegel Sack Co., Appellant.

(Supreme Court, Appellate Term, First Department,

February, 1913.)

Counterclaim — in action against foreign corporation — pleading — failure to comply with section 15 of the General Corporation Law and section 181 of the Tax Law.

Where, in an action for goods sold and delivered to a foreign corporation doing business in this state, the answer pleads two counterclaims, one of which arose out of the contract sued on and the other did not, the failure of defendant to comply with section 15 of the General Corporation Law, providing for the certificate of authority to do business in this state, is not a defense to the first counterclaim, but defendant’s failure to comply with section 181 *422of the Tax Law, providing for the payment of a license tax by a foreign corporation engaged in business in this state, is a defense to both counterclaims.

Appeal by defendant from an interlocutory judgment of the City Court of the city of Hew York overruling in part defendant’s demurrer to two separate defenses set up in plaintiff’s reply to two counterclaims pleaded in defendant’s answer.

King & Booth (Frederick P. King, of counsel), for appellant.

' Clarence J. Shearn (MacDonald DeWitt, of counsel), for respondent.

Gerard, J.

This action was brought to recover the sum of $1,369.26, alleged to be the agreed price and reasonable value of certain -inks sold and delivered by plaintiff to defendant.

The defendant’s answer includes two counterclaims, the first of which demands judgment against the plaintiff for $1,114.19 because of the alleged breach of warranty of some of the ink alleged to have been sold to defendant by plaintiff; the second counterclaim demands judgment against the plaintiff because of the alleged breach of warranty of certain other inks sold and delivered by plaintiff to defendant, but not included in the goods for the price or value of which this action was brought.

Plaintiff pleaded two defenses to each of these counterclaims; the two defenses being in each case the sáme and these were, *first,*that the defendant is a foreign stock corporation doing business in this state and had failed to obtain a certificate of authority as prescribed by the provisions of section 15 of the General Corporation Law and, *second,*that the defendant has failed to comply with the provisions of section 181 of the Tax Law providing for the payment of a license tax by a foreign corporation engaged in business in this state.

*423To these two defenses to each counterclaim the defendant demurred and the following questions were therefore presented :

Where the counterclaim arises out of a contract upon which the action is brought, first, is failure by the corporation to comply with' the provisions of section 15 of the General Corporation Law a defense; and *second,*is failure by the corporation to comply with the provisions of section 181 of the Tax Law a defense, and where the counterclaim does not arise out of the contract upon which the action is brought, is the failure of the corporation to comply with these two laws above set forth a defense ?

The court below held that one of these defenses only was bad, namely, the defense which sets up that failure to comply with the provision of section 15 of the General Corporation Law providing for the certificate of authority for a foreign corporation was a defense to a counterclaim arising out of the contract upon which the action is brought.

The court, therefore, held that failure by a foreign corporation to comply with the provisions of section 181 of the Tax Law is a defense even to a counterclaim growing out of the contract on which the action is brought and that this was also a defense to a counterclaim set up as an independent cause of action, as was also the failure of the corporation to comply with the provisions of section 15 of the General Corporation Law, providing for the obtaining of a certificate by foreign corporations doing business in this state.

The language of this statute (section 15 of the General Corporation Law) is that no foreign stock corporation doing-business in this state “ shall maintain any action in this state on any contract made by it in this state ” before obtaining a certificate of authority; while section 181 of the Tax Law is broader in that its application is uot limited to any class of actions and the prohibition is expressed in the words: “Ho action shall be maintained or recovery had.” The court below correctly sustained defendant’s demurrer to the first separate defense to the first counterclaim on the ground that section 15 of the General Corporation Law did not prevent a foreign corporation from recovering upon *424a counterclaim arising out of the transaction upon which the plaintiff sued on the authority of Alsing Co. v. New England Quartz & S. Co., 66 App. Div. 473; affd. without opinion in 174 N. Y. 536, ¡as this case expressly held that section 15 did not prevent a foreign corporation when sued from recovering on a counterclaim “ arising out of the transaction that had been made the basis of plaintiff’s complaint.”

The language of section 181 of the Tax Law has been construed in no case in the state of Hew York, except in the Alsing case above stated, where the Appellate Division said •that the language used was more comprehensive than the language used in section 15 of the General Corporation Law and where the difference in the statutes was pointed out.

It seems to me that the words “ or recovery had,” used in addition to the words *“*no action shall be maintained,” make it plain that the legislature intended that the corporation which had not complied with section 181 of the Tax Law should be entitled to obtain no relief in the courts of this state, either as plaintiff or as defendant alleging a counterclaim, and this whether the counterclaim arose out of the contract on which plaintiff sues or not.

As to the defense which pleads the failure to comply with section 15 of the General Corporation Law as a defense to the. counterclaim which did not grow out of the contract on which plaintiff sued, it has been held in Wood & Selick v. Ball, 190 N. Y. 217, that where a foreign corporation doing business in this state seeks to recover on a contract made in this state, compliance with section 15 is a fact which must be alleged in the complaint in order to state facts sufficient to constitute a cause of action and must be proved on the trial in order to establish a cause of action in the courts of this state.

In determining this question the fact must not be lost sight of that a counterclaim must contain all the elements of a cause of action. Code Civ. Pro., § 501; Cragin v. Lovell, 88 N. Y. 258.

*425The interlocutory judgment appealed from should be affirmed with ten dollars cost and disbursements.

Seabuby and Bijub, JJ., concur.

Interlocutory judgment affirmed with ten dollars costs and disbursements.