Assign driver
With this endpoint, you can assign a driver or vehicle to a delivery.
Assign a driver to a delivery or route.
Autorizaciones
Parámetros de ruta
idstringRequerido
Identifier or reference Id of the delivery or route to which a driver will be assigned
Cuerpo
courierIdintegerRequeridoExample:
Driver identifier to whom the delivery/route will be assigned. No other property is sent in the payload
1234
vehicleIdintegerOpcionalExample:
Driver's vehicle identifier to which the delivery/route will be assigned. No other property is sent in the payload
2344
vehicleReferenceIdstringOpcionalExample:
Driver's vehicle reference to which the delivery/route will be assigned. No other property is sent in the payload
2344
Respuestas
200
Successful operation
application/json
401
Unauthorized
application/json
post
POST /v1/routes/{id}/assign HTTP/1.1
Host: api.shippify.co
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 275
{
"courierId": 1234,
"vehicleId": 2344,
"vehicleReferenceId": 2344,
"driver": {
"firstName": "LUIS ALBERTO",
"lastName": "PILALUISA CONDOR",
"dni": "1721547592",
"mobile": "0990670384"
},
"vehicle": {
"capacity": 1,
"model": "Civic",
"brand": "Honda",
"licensePlate": "TAA6662",
"referenceId": "UE1118"
}
}
{
"code": "OK"
}
Casos de uso
Última actualización