Creating Bills in Quickbooks including Delivery with Line Item Type Account based as well as Item based

I’ve created a Scenario that takes PDFs, gets a chat assistant with OpenAI to extract the data, runs it through a JSON parse, then searches for and ensures that the Bill does not already exist in Quickbooks. I then iterate the JSON, fetch the Item IDs against the Quickbooks data by searching for items and aggregate based on Quickbooks Bill line items.

This all works fine, I’m able to map the invoice number, totals, and the product line items, but I’m struggling to work out how to get the delivery cost in there?

It should be under line Item type: Account based but I’ve no idea how to achieve this. I tried running a 2nd aggregator to create a separate array for the delivery cost (there is only 1 delivery cost) so that I could try using add() to combine the arrays when entering into QuickBooks but it didn’t seem to want to allow me to do that (fields not able to be set, QB not able to see that there is 2 array aggregators).

ANy ideas?