# Insert unknown number of items as dynamic data for API POST call

**URL:** <https://forum.bubble.io/t/insert-unknown-number-of-items-as-dynamic-data-for-api-post-call/134566>\
**Category:** APIs\
**Created:** [February 5, 2021, 9:19am UTC](https://forum.bubble.io/t/insert-unknown-number-of-items-as-dynamic-data-for-api-post-call/134566 "2021-02-05T09:19:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tim12](https://avatars.discourse-cdn.com/v4/letter/t/eb8c5e/32.png) [@tim12](https://forum.bubble.io/u/tim12)\
**Post date:** [February 5, 2021, 9:19am UTC](https://forum.bubble.io/t/insert-unknown-number-of-items-as-dynamic-data-for-api-post-call/134566/1 "2021-02-05T09:19:41Z")

</div>

I’m using Bubble’s backend workflow to GET a Woocommerce order, and POST the results in our Administration platform. The API connections are working, we already use it to copy the customer data.

Now I want to POST the ordered items as well. But this is an **unkown number of different items**. (some customers order 1 item, some order 4 different items).

**- How do I place this as dynamic data in a API POST call?**

This is a POST example for 2 items:

```
<OrderLines>

  <OrderLineApiEntity>
       <ArticleCode>67205</ArticleCode>
       <Quantity>2.0000</Quantity>
  </OrderLineApiEntity>

  <OrderLineApiEntity>
       <ArticleCode>1226009</ArticleCode>
       <Quantity>2.0000</Quantity>
  </OrderLineApiEntity>

</OrderLines>
```

---

<div class="post-metadata">

**Author:** ![napo.pena87](https://avatars.discourse-cdn.com/v4/letter/n/5fc32e/32.png) [@napo.pena87](https://forum.bubble.io/u/napo.pena87)\
**Post date:** [October 12, 2021, 9:55pm UTC](https://forum.bubble.io/t/insert-unknown-number-of-items-as-dynamic-data-for-api-post-call/134566/2 "2021-10-12T21:55:30Z")

</div>

Hello @tim12 did you find how to get this? i´m dealing with the same problem, thanks

---

<div class="post-metadata">

**Author:** ![chris.williamson1996](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/chris.williamson1996/32/70581_2.png) [@chris.williamson1996](https://forum.bubble.io/u/chris.williamson1996)\
**Post date:** [October 13, 2021, 12:02am UTC](https://forum.bubble.io/t/insert-unknown-number-of-items-as-dynamic-data-for-api-post-call/134566/3 "2021-10-13T00:02:39Z")

</div>

You can make the param dynamic just call it

Then take the list of things and convert it to a json object with a plug-in or JS and pass it through.

---

<div class="post-metadata">

**Author:** ![FJP](https://avatars.discourse-cdn.com/v4/letter/f/7993a0/32.png) [@FJP](https://forum.bubble.io/u/FJP)\
**Post date:** [June 24, 2022, 5:41pm UTC](https://forum.bubble.io/t/insert-unknown-number-of-items-as-dynamic-data-for-api-post-call/134566/4 "2022-06-24T17:41:50Z")

</div>

Take a look here. You can create JSON object by formatting lists as text  
.

> [@API Connector POST with dynamic data (postmark email)](http://forum.bubble.io/t/api-connector-post-with-dynamic-data-postmark-email/143051):
>
> Hello! I’m trying to send your some data from a repeating group to an email template in Postmark. In the template there are some repeating fields that are set up this way: "calculation\_details": [{ "description": "description\_Value", "amount": "amount\_Value" }] In the API connector body, I have entered following: "calculation\_details": [{ "description": "\<description\_Value\>", "amount": "\<amount\_Value\>" }] And then down in the parameters I can set the description\_Value a…
