To Reject an Order as a Courier
Reject Orders: Only Courier can reject orders from the clients.
If you want to Reject an order from the client, you would need the orderId
of the order, this is short id that appears on the dashboard.
Name | Type | Description |
---|---|---|
reasons | String | Required. A short description of why the order is rejected. |
curl -i -X POST "https://onfleet.com/api/v2/taskOrders/293d3de6/reject" \
-u "c64f80ba83d7cfce8ae74f51e263ce93:"
-d {"reasons":"This is a test order"}
API key
This is for the Courier with a Courier API key, and not for the Client with a Client API key.