Atrelar motorista

Com esse endpoint podemos atrelar um motorista ou um veículo à uma entrega.

Atribuir um motorista a uma entrega ou rota.

post

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
courierIdintegerRequerido

Driver identifier to whom the delivery/route will be assigned. No other property is sent in the payload

Example: 1234
vehicleIdintegerOpcional

Driver's vehicle identifier to which the delivery/route will be assigned. No other property is sent in the payload

Example: 2344
vehicleReferenceIdstringOpcional

Driver's vehicle reference to which the delivery/route will be assigned. No other property is sent in the payload

Example: 2344
Respuestas
200

Operação bem-sucedida

application/json
post
/v1/routes/{id}/assign

Casos de uso

Atrelar um motorista à um ID de entrega
Atrelar um motorista à um referenceID de entrega

Utilize o referenceid da entrega na url da petição para atrelar um motorista.

Atrelar motorista por id do veículo
Atrelar motorista por id de referência do veículo
Criar e atrelar veículo e motorista à uma tarefa

Última actualización