You get a case id from NVC, usually by sending an email up front, or eventually through the NVC mail
The case ID starts with 3 letters, a code for the US consulate/embassy.
With that case-ID you can pay the fee
That case ID and the USCIS number is required for the DS-160.