Add additional Invoice productdata?

Add additional Invoice productdata?

Hey,

I'm currently working on a project, requiring me to extract the Invoices through the API.
While I've got this working no problem, I was wandering if it's possible to request addition or get additional data into the invoice's product array. I need the data of a custom-field to be returned. Is this possible?
So I want my customfield ''Woocommerce product ID' data included to all productdata returned in the invoice's productdata.

Right now to accomplish this is first requesting all invoices, then I loop through all invoices. Within every invoice I loop through the products of that invoice, fetching the product id. Then I request that product via the Zoho API by it's id. Finally replacing the invoice product instance with the 'complete' one from the Zoho API.

This just seems very inefficient and I hope anyone can point me in a better direction!