Skip to main content

I am trying to create a post request, but the api documentation requires two inputs (InvoiceId and Amount) that are within a subarray of an object.

 

(I am new to coding so my terminology may be off.)

 

I have attached a photo of what I am talking about. Basically, I need to set up an input data field for the two items under the Split object. Does anyone know how to do this?

 

 

UPDATE:

I tried creating a ‘Line Item Group’ input and received the following code in return:

"Only one customer allowed. Actual count: 0"

 

Any thoughts on what this means?


Hi @jacob_nolley - Thanks for writing in!
 

Thanks for all the extra details. I’ve escalated your question to our team for further review. We’ll be sure to update you as soon as possible. Thanks!


I wanted to share the outcome of this with folks in case they come across the same issue. Here’s what @matthew  from our escalations team found:

In this case, you'll likely want to set up a line item group: https://platform.zapier.com/docs/input-designer#how-to-add-a-line-item-group with a key of Split and then the two individual fields included as children of the line item group. This will then send the fields nested as:

split: s
{
"invoiceId": 0,
"amount": 0
}
]

 

And it looks like this has resolved @jacob_nolley’s issue 🙌