If you're filing a New York return for tax year 2023 and have a New York-issued ID, you're required to enter the document number (in addition to your ID number) on your New York state return.
This number is an 8- or 10-digit alphanumeric number located in the lower right corner of your driver's license, permit, or non-driver ID, or on the back if it was produced after January 28, 2014. The document number begins after IDUSA. Do not include IDUSA as part of the document number.
You can see examples at the New York Department of Motor Vehicles website.