N.Y. Real Property Law § 275
1. Whenever a mortgage upon real property is due and payable, and the full amount of principal and interest due on the mortgage is paid, a certificate of discharge of mortgage shall be given to the mortgagor or person designated by him or her, signed by the person or persons specified in section three hundred twenty-one of this chapter. The person signing the certificate shall, within thirty days thereafter, arrange to have the certificate presented for recording to the recording officer of the county where the mortgage is recorded. Failure by a mortgagee to present a certificate of discharge for recording shall result in the mortgagee being liable to the mortgagor in the amount of five hundred dollars if he or she fails to present such certificate within thirty days, shall result in the mortgagee being liable to the mortgagor in the amount of one thousand dollars if he or she fails to present a certificate of discharge for recording within sixty days and shall result in the mortgagee being liable to the mortgagor in the amount of one thousand five hundred dollars if he or she fails to present a certificate of discharge for recording within ninety days. For the purposes of such liability under this subdivision, the term "mortgagee" shall not include a person, partnership, association, corporation or other entity which makes less than five mortgage loans in any calendar year. The provisions of this section shall not apply to any mortgage granted to or made by the state of New York, or any agency or instrumentality thereof or any political subdivision of the state or any agency or instrumentality thereof. * 2. For purposes of this section, the full amount of principal and interest due on a mortgage shall not be considered to be paid whenever such mortgage continues to secure a bona fide debt and an enforceable lien continues to exist, such as may occur in the following situations:
(e) a refinancing that occurs in conjunction with the sale of property such that the seller conveys property to the purchaser subject to the lien of the mortgage and the original lender assigns its note and mortgage on the property to the purchaser's lender. * NB Effective until June 10, 2026 * 2. (a) For purposes of this section, the full amount of principal and interest due on a mortgage shall not be considered to be paid whenever such mortgage continues to secure a bona fide debt and an enforceable lien continues to exist, such as may occur in the following situations: