To cancel an order
This endpoint is used to cancel orders.
Name | Type | Description |
---|---|---|
orderIds | Array of Strings | Required. An array of order IDs to cancel or delete before the order starts or completes. The body must be an array, even if only one order ID is included. |
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
}