Sets the status of the order batch whose id, -, is in the route, and answers the batch. The body is the status code as a JSON string, such as "SENT"; one that isn't a valid status is refused with the list of valid codes.
curl --location --request PUT 'https://marketplacerest.perenso.net/v1/orderBatches//status' \
--header 'Content-Type: application/json' \
--data 'SENT'{
"id": "1042-1",
"deliveryDate": "2026-11-20T00:00:00+11:00",
"status": "SENT",
"isTest": false,
"promo": {
"id": "PROMO-SUMMER26",
"name": "Summer Stock-Up 2026"
},
"lastStatusChangeDate": "2026-11-16T11:15:03+11:00",
"customer": {
"id": "CUST-1001",
"name": "Harbourside Grocers"
},
"distributor": {
"id": "DIST-NSW",
"name": "Coastal Distribution"
},
"warehouse": {
"id": "WH-SYD",
"name": "Sydney DC"
},
"orderLines": [
{
"productCore": {
"id": "PRD-330",
"name": "Sparkling Water Lemon"
},
"productSku": {
"id": "SKU-24-330",
"name": "Sparkling Water Lemon 24 x 330ml"
},
"listPrice": 28.5,
"salePrice": 24.9,
"quantity": 12
}
],
"freeStock": [
{
"productCoreID": "PRD-330",
"productSkuID": "SKU-24-330",
"listPrice": 28.5,
"quantity": 1
}
]
}