N.Y. Penal Law § 200.12
A public servant is guilty of bribe receiving in the first degree when he or she solicits, accepts or agrees to accept: (a) any benefit from another person upon an agreement or understanding that his or her vote, opinion, judgment, action, decision or exercise of discretion as a public servant will thereby be influenced in the investigation, arrest, detention, prosecution or incarceration of any person for the commission or alleged commission of a class A felony defined in article two hundred twenty of this part or an attempt to commit any such class A felony; or