# Create multiple things from webhook （Solved）

**URL:** <https://forum.bubble.io/t/create-multiple-things-from-webhook-solved/160160>\
**Category:** APIs\
**Created:** [July 16, 2021, 3:01am UTC](https://forum.bubble.io/t/create-multiple-things-from-webhook-solved/160160 "2021-07-16T03:01:39Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![betterdayny2019](https://avatars.discourse-cdn.com/v4/letter/b/5f9b8f/32.png) [@betterdayny2019](https://forum.bubble.io/u/betterdayny2019)\
**Post date:** [July 16, 2021, 3:01am UTC](https://forum.bubble.io/t/create-multiple-things-from-webhook-solved/160160/1 "2021-07-16T03:01:39Z")

</div>

Hello all

I am new to bubble. I try to create multiple new items from a webhook. I really appreciate any help to the right direction. Here is an example of the request:

```auto
curl --location --request POST 'https://integrator.com/orders' \
--header 'Content-Type: application/json' \
--data-raw '{
    "_id": "5c6d830a0182d6000e ******",
    "_created": "2019-02-20T16:40:44.000000Z",
    "_updated": "2019-02-20T16:40:52.000000Z",
    "channelOrderId": " ****** -1527",
    "channelOrderDisplayId": "1527",
    "posLocationId": "30458",
    "location": "5bf02f38c6489f002c ******",
    "channelLink": "5bf02f38c6489f002c ******",
    "status": 1,
    "statusHistory": [
        {
            "_created": "2019-02-20T16:40:42.703000Z",
            "response": "",
            "timeStamp": "2019-02-20T16:40:42.703000Z",
            "status": 4
        },
        {
            "_created": "2019-02-20T16:40:42.726000Z",
            "response": "",
            "timeStamp": "2019-02-20T16:40:42.726000Z",
            "status": 1
        }
    ],
    "by": "web",
    "orderType": 2,
    "channel": 2,
    "table": "table 3",
    "pickupTime": "2019-02-20T16:40:42.000000Z",
    "deliveryIsAsap": false,
    "courier": {
        "firstName": "Delivery",
        "lastName": "Rider",
        "phoneNumber": "0032494112233",
        "deliveryBy": "UberEats"
    },
    "customer": {
        "name": "James Bond",
        "companyName": "MI6",
        "phoneNumber": "0032494000007",
        "email": "james.bond@mi6.uk.gov"
    },
    "deliveryAddress": {
        "street": "Albert Embankment",
        "streetNumber": "85",
        "postalCode": "SE, SW",
        "city": "Vauxhall, Lambeth",
        "extraAddressInfo": ""
    },
    "orderIsAlreadyPaid": true,
    "payment": {
        "amount": 400,
        "type": 0
    },
    "note": "",
    "items": [
        {
            "plu": "P1",
            "name": "Product 1",
            "price": 200,
            "quantity": 1,
            "productType": 1,
            "remark":"Don'\''t add peper",
            "subItems": [
                {
                    "plu": "O1",
                    "name": "Modifier 1/ Option 1",
                    "price": 0,
                    "quantity": 1,
                    "productType": 2,
                    "isInternal": false,
                    "remark":"",
                    "subItems": []
                },
                {
                    "plu": "O2",
                    "name": "Modifier 2/ Option 2",
                    "price": 200,
                    "quantity": 1,
                    "productType": 2,
                    "isInternal": false,
                    "remark":"",
                    "subItems": []
                }
            ]
        },
        {
            "plu": "P2",
            "name": "Product 2",
            "price": 200,
            "quantity": 1,
            "productType": 1,
            "remark":"Without salt",
            "subItems": [
                {
                    "plu": "O1",
                    "name": "Modifier 1/ Option 1",
                    "price": 0,
                    "quantity": 1,
                    "productType": 2,
                    "isInternal": false,
                    "remark":"",
                    "subItems": []
                }
            ]
        }
    ],
    "decimalDigits": 2,
    "numberOfCustomers": 1,
    "deliveryCost": 0,
    "serviceCharge": 0,
    "discountTotal": 0,
    "posCustomerId": "256706",
    "account": "5be9c971c6489f0029 ******",
    "posReceiptId": "",
    "tags": [
        "Brand X",
        "Brand Y"
    ]
}'

```

---

<div class="post-metadata">

**Author:** ![betterdayny2019](https://avatars.discourse-cdn.com/v4/letter/b/5f9b8f/32.png) [@betterdayny2019](https://forum.bubble.io/u/betterdayny2019)\
**Post date:** [July 16, 2021, 3:39am UTC](https://forum.bubble.io/t/create-multiple-things-from-webhook-solved/160160/2 "2021-07-16T03:39:26Z")

</div>

I think I got closer, When a new order comes in, I want to get all items in that order.

 ![截屏2021-07-15 下午11.36.03](https://us1.discourse-cdn.com/bubble/original/3X/e/3/e37e492aade33891dedce7bc356078ef080ebfa8.png)  
 ![截屏2021-07-15 下午11.36.18](https://us1.discourse-cdn.com/bubble/original/3X/f/7/f7032a8265ef892fe462b16fbb73a008c3264002.png)  
 ![截屏2021-07-15 下午11.36.25](https://us1.discourse-cdn.com/bubble/original/3X/1/b/1baf8c25a7af154ae483f8930cc5548c45941640.png)

Instead of getting two entries with unique names, I got two entries with both names.

 ![截屏2021-07-15 下午11.36.38](https://us1.discourse-cdn.com/bubble/original/3X/8/2/820d84ecc2fff6e4b662a7cc3c0e88b336a40cb1.png)

---

<div class="post-metadata">

**Author:** ![betterdayny2019](https://avatars.discourse-cdn.com/v4/letter/b/5f9b8f/32.png) [@betterdayny2019](https://forum.bubble.io/u/betterdayny2019)\
**Post date:** [July 16, 2021, 4:14am UTC](https://forum.bubble.io/t/create-multiple-things-from-webhook-solved/160160/3 "2021-07-16T04:14:40Z")

</div>

Solved Thanks guys

---

<div class="post-metadata">

**Author:** ![randyw](https://avatars.discourse-cdn.com/v4/letter/r/a5b964/32.png) [@randyw](https://forum.bubble.io/u/randyw)\
**Post date:** [March 8, 2022, 12:40pm UTC](https://forum.bubble.io/t/create-multiple-things-from-webhook-solved/160160/4 "2022-03-08T12:40:23Z")

</div>

How were you able to solve this?

---

<div class="post-metadata">

**Author:** ![neil4](https://avatars.discourse-cdn.com/v4/letter/n/e68b1a/32.png) [@neil4](https://forum.bubble.io/u/neil4)\
**Post date:** [March 25, 2022, 3:35pm UTC](https://forum.bubble.io/t/create-multiple-things-from-webhook-solved/160160/5 "2022-03-25T15:35:00Z")

</div>

Can you share with us, how you were able to solve this?

---

<div class="post-metadata">

**Author:** ![aaronorrell](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/aaronorrell/32/127031_2.png) [@aaronorrell](https://forum.bubble.io/u/aaronorrell)\
**Post date:** [April 6, 2022, 2:53pm UTC](https://forum.bubble.io/t/create-multiple-things-from-webhook-solved/160160/6 "2022-04-06T14:53:54Z")

</div>

Also looking for an answer for this 🙂
