How can I retrieve invoices including their line items using REST API

I’ve managed to retrieve the invoices using the usual REST API call get_entry_list, but they don’t include the line items.

How can I retrieve invoices including the line items using the REST API?

I am not sure about the actual code to write for this but you need to grab the line items from the AOS_Product_Quotes module where parent_id is the id of your invoice.