N.Y. Real Property Actions & Proceedings Law § 919
The court, in the interlocutory judgment for a sale, shall direct the terms of credit which may be allowed for any portion of the purchase-money.