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:
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"
]
}'