Assign driver

With this endpoint, you can assign a driver or vehicle to a delivery.

Casos de uso

Assign driver to delivery ID
{
    "courierId": 396930
}
Assign driver to delivery reference ID

You can use the delivery reference ID in the URL of the request to assign a driver.

Assign driver by vehicle ID
{
    "vehicleId": 19365
}
Assign driver by vehicle reference ID
{
    "vehicleReferenceId": 19365
}
Create and assign a vehicle and driver to a task
{
    "driver": {
        "firstName": "LUIS ALBERTO",
        "lastName": "PILALUISA CONDOR",
        "dni": "1721547592",
        "mobile": "0990670384"
    },
    "vehicle": {
        "capacity": 1,
        "model": "Truck",
        "brand": "SINOTRUCK",
        "licensePlate": "TAA6662",
        "referenceId": "UE1118"
    }
}

Última actualización