Create AR Entry automatically

Hi guys, can anyone help me with code to create AR Invoice Entry using the API through SSIS?

If there is a better, much easier way, I’d be glad

What is trigger for this automation and what are you looking to achieve?