Skip to main content
Best answer

How to configure API Request with Line Item Group ?

  • February 14, 2022
  • 1 reply
  • 345 views

Via an Action I want to create an element with lines. In the "input Designer" part I added a "Line Item Group" block and I configured it as follows:

 

 

In the "API Configuration" part and step 1 "Configure your API Request", how to configure the "body" request for these lines? The API POST request, which I am using, expects information in this form:

 

Best answer by Zane

Assigning the key of your line item group to a field in the body of your post will get you the behavior you’re after. bundle.inputData.lineitemkey will contain an array of objects whose fields are the keys of the child fields in your line item group.

 

 

 

 

 

What got sent to the server...

 

This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

1 reply

Forum|alt.badge.img+9
  • Zapier Staff
  • Answer
  • February 17, 2022

Assigning the key of your line item group to a field in the body of your post will get you the behavior you’re after. bundle.inputData.lineitemkey will contain an array of objects whose fields are the keys of the child fields in your line item group.

 

 

 

 

 

What got sent to the server...