POST HTTP Request (send array)

Hi, im trying to send information to create an order in my fulfillment warehosue.

Sometimes the order has only 1 SKU and some times it has multiple SKUs.

when i try to create an order for 1 SKU i send this JSON and it works:
{
“warehouseID”: 10,
“isCod”: false,
“codAmount”: 0,
“receiverName”: “{receiverName}”,
“receiverPhone”: “{receiverPhone}”,
“receiverAddress”: “{receiverAddress}”,
“receiverSubDistrict”: “{receiverSubDistrict}”,
“receiverDistrict”: “{receiverDistrict}”,
“receiverProvince”: “{receiverProvince}”,
“receiverPostcode”: “{receiverPostcode}”,
“expressID”: 11,
“totalProductPrice”: {totalProductPrice},
“deliveryPrice”: {deliveryPrice},
“orderDiscount”: {orderDiscount},
“vatType”: 1,
“vatAmount”: {vatAmount},
“facebookName”: “{facebookName}”,
“productList”: [
{
“name”: “{name}”,
“propDescription”: “{propDescription}”,
“sku”: “{sku}”,
“quantity”: {quantity},
“unitPrice”: {unitPrice},
“productImageUrl”: “{productImageUrl}”
}
]
}

but when i try to send for multiple skus it does not work, i understand I need to use an array but I have no idea how to. Im using an agent tool to do the http request

thanks!

Using an Execute Workflow tool instead of an HTTP Request tool might be helpful. The Workflow tool can pass all relevant data, including the SKU list.

In the sub-workflow, you would only need to ensure that everything is passed to the API.

This approach has the advantage that the step can be implemented, tested, and replaced individually. Additionally, data validation can be performed before the request is sent to the API.