For courier type
The Orders endpoints allow creating, updating, cancelling, and cloning orders. This module is designed to be used by courier-client users with the appropriate permissions. An Order is a linked pair of tasks consists of one pickup and one dropoff.
The base API URL is http://onfleet.com/api/v2/taskOrders .
To Create an order - POST - https://onfleet.com/api/v2/taskOrders
To Update an order - PUT - https://onfleet.com/api/v2/taskOrders/:orderId
To Cancel an order - POST - https://onfleet.com/api/v2/taskOrders/cancel
To Clone an order - POST - https://onfleet.com/api/v2/taskOrders/:orderId/clone