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!