Hello!
I am creating a zapier integration for our invoicing software. I am however not sure how can I create a nest an array of JSON objects inside a jSON.
"invoice": {
"seller_name": "name1",
"seller_tax_no": "123456789",
"buyer_name": "name2",
"buyer_email": "some@email.com",
"buyer_tax_no": "987654321",
"positions":[
{"name":"Product 1", "tax":23, "total_price_gross":10.23, "quantity":1},
{"name":"Product 2", "tax":0, "total_price_gross":50, "quantity":3}
]
}
I have no problem adding fields, I am however stumped with “positions”. I have tried making it a Line Group Item, but when I tried inputting some test data I realized it gets turned into a regular array of strings, rather than an array of JSON objects.
"positions": s
"name: product 1",
"vat: 23",
"total_price_gross: 100",
"quantity: 1"
]
Is it possible to make it work in either zapier developer platform, or zapier CLI?
I’m also not sure exactly how Group Line Items work. Can I create multiples of them in one action? I can see no such option in Inptut Designer, so maybe there’s a better way to input a group of values like invoice positions, that varies in size from object to object