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.
N.Y. Real Prop. Law § 442-D