curl --location 'https://api.qa.ordermesh.io/shipment/v1/reroute' \
--header 'Content-Type: application/json' \
--data '{
"shipmentId": "d8f51b34-3c03-4f7c-b3ff-1e49a159e851",
"facilityId": "a1f0a9cc-f66c-447f-b770-9b4884e9f02d",
"reason": "Reroute reason",
"orderItems": [
{
"id": "52da6815-2ad6-488f-826f-b0c4a9f524a5",
"quantity": 5
},
{
"id": "fad49c6c-133f-4ab6-9f22-afe14e8d2aa2",
"quantity": 1
},
{
"id": "dad81bd8-dbe0-40f2-98f3-1b427fe87c95",
"quantity": null
}
]
}'{
"success": true,
"message": "Shipment was successfully rerouted"
}