New York Laws
Article 12-A - Real Estate Brokers and Real Estate Salespersons
442-D - Actions for Commissions; License Prerequisite.

ยง 442-d. Actions for commissions; license prerequisite. No person,
copartnership, limited liability company or corporation shall bring or
maintain an action in any court of this state for the recovery of
compensation for services rendered, in any place in which this article
is applicable, in the buying, selling, exchanging, leasing, renting or
negotiating a loan upon any real estate without alleging and proving
that such person was a duly licensed real estate broker or real estate
salesperson on the date when the alleged cause of action arose.