Using REST API to fin all invoices for a sales order

For that you want to use a BAQ.
Also for generating a PDF Version see this
https://www.epiusers.help/t/trigger-arinvoice-generation-from-api-not-totally-getting-it