You should register here https://sdi.fatturapa.gov.it/SdI2FatturaPAWeb/AccediAlServizioAction.do?pagina=accreditamento_canale
You’ll need a digital signature that you can buy online from an Italian provider of your choice.
There are many third party services offering simpler REST API to send and receive FatturaPA files, like the services we provide.