To cancel an order
This endpoint is used to cancel orders.
Completed Orders cannot be deleted/cancelled, example request:
curl -i -X POST "https://onfleet.com/api/v2/taskOrders/cancel" \
-u "c64f80ba83d7cfce8ae74f51e263ce93:"
-d {"orderIds": ["bShwrO6F7wQ4aqz9xAjhmzE4"]}
Response:
{
"status": "success",
"totalOrdersRemoved": 1
}