Follow this link codice fiscale. It requires your full name, date of birth, sex and country of birth. It can be generated automatically. You need the number itself, not physical proof of the number, as in a card.
While the CF is essential for payment, most companies want you to have a partita IVA, but that’s a separate and more complicated matter.