N.Y. Comp. Codes R. & Regs. tit. 22, § 214.12
(a) Except for any action or proceeding arising under the Vehicle and Traffic Law, or prosecution of a violation of an ordinance of a city, town or village, or in a petition for change of name under the Civil Rights Law, or as otherwise provided by rule or law or court order, and whether or not a sealing order is or has been sought, the parties shall omit or redact confidential personal information in papers submitted to the court for filing. For purposes of this rule, confidential personal information (CPI) means:
(d) The redaction requirement does not apply to the last four digits of the relevant account numbers, if any, in an action arising out of a consumer credit transaction, as defined in subdivision (f) of section 105 of the Civil Practice Law and Rules. In the event the defendant appears in such an action the defendant may without leave of court submit papers disclosing full account numbers to the extent necessary to ensure that an order or judgment issued by the court contains proof satisfactory to a credit reporting agency. In the event the defendant appears in such an action and denies responsibility for the identified account, the plaintiff may without leave of court amend his or her pleading to add full account or CPI by: