Atrelar motorista
Com esse endpoint podemos atrelar um motorista ou um veículo à uma entrega.
Atribuir um motorista a uma entrega ou rota.
Autorizaciones
AuthorizationstringRequerido
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
1234vehicleIdintegerOpcionalExample:
Driver's vehicle identifier to which the delivery/route will be assigned. No other property is sent in the payload
2344vehicleReferenceIdstringOpcionalExample:
Driver's vehicle reference to which the delivery/route will be assigned. No other property is sent in the payload
2344Respuestas
200
Operação bem-sucedida
application/json
401
Não autorizado
application/json
post
/v1/routes/{id}/assignPOST /v1/routes/{id}/assign HTTP/1.1
Host: api.shippify.co
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 258
{
"courierId": 1234,
"vehicleId": 2344,
"vehicleReferenceId": 2344,
"driver": {
"firstName": "Juan",
"lastName": "Perez",
"dni": "9999999999",
"mobile": "9999999999"
},
"vehicle": {
"capacity": 1,
"model": "Corolla",
"brand": "Toyota",
"licensePlate": "ABC123",
"referenceId": "A12345"
}
}{
"code": "OK"
}Casos de uso
Última actualización