I’m trying to create a zap that creates an invoice in QBO from a jotform submission trigger. (I can’t use the innate jotform “create invoice” function due to some limitations.)
After the trigger I’m using a code step to parse out all the necessary information, then trying to feed it into the “create invoice” step, but I keep getting an “invalid reference ID” error. This is how I have the java step set up:

And this is an example of my output:


But when I then feed that into the create invoice step:


I get that ^ error.
I tried adding a “find products (with line item support” step, but it will only return the first product, not multiples.
Full disclosure: I’m getting the code from ChatGPT because I’m not a coder, so I’m quite sure that’s where some of my issues are coming from, lol. I’ve gone round and round trying to troubleshoot it and haven’t gotten anywhere so i thought I’d try here.
Thanks in advance for any help you can give me!