N.Y. Not-for-Profit Corporation Law § 1315
(b) Except as otherwise provided in this article, an action or special proceeding against a foreign corporation may be maintained by another foreign corporation of any kind or by a nonresident in the following cases only: