Create a Invoice in Zoho Books using http request

can to help to aggregate the list of line item, i am able to separate the line items from the invoice, as i need only specific fields to pass and rename the fields name so that the zoho api can create the invoicee

Here i am getting only one line item as there are multiple

API Structure
{
“customer_id”:xxxx,
“invoice_number”:“{{ $(‘Mindee’).item.json[“invoice_number”] }}”,
“date”:“2023-01-01”,
“due_date”:“2023-12-03”,
“line_items”:[
{
“description”:“500GB, USB 2.5 interface 1400 rpm, protective hard case.”
},
{
“description”:“200GB, USB 2.5 interface 1400 rpm, protective hard case.”
},
]
}

Hey @Arudhra,

It looks like you are only extracting the description field, We will loop the node once for each item so yoru first run will use Polyol as the description and the second will use Diisocyanate and so on. If you wanted to group these together I would maybe use a code node to build out your expected json and handle it that way.

i tried using code node, but unable to get the objective.
can you help in what java script code to be mentioned in the node

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.