sgrAtualizarUnidadeRespVeiculoMotorista
Maintain the responsible unit used by the vehicle/driver
PARAMETERS
Field | Type | Req. | Description |
---|---|---|---|
keyaccess | string | Yes | Key returned by the sgrLogin method. |
cdpas | integer | Yes | PAS code, returned by the sgrListaPASUsuario method |
cdcliente | integer | Yes | Customer code, returned by the sgrListaEmpresasPASUsuario method. |
flType | string | Yes | Update type (“M” for driver and “V” for vehicle). |
cdpaisorigem | integer | Yes | Code of the vehicle/driver's country of origin, returned by the sgrListaPais method. |
nrPlacanrDocMotorist | string | Yes | License plate or document number (CPF). |
cdunidaderesp | integer | Yes | Operation code. This code is returned by the sgrReturnUnits method. |
METHOD RETURN:
If the parameters are valid, the driver/vehicle unit is updated and returns ReturnDescription = OK.
ReturnDescription: If there is an error when executing the method, the property will display:
Error | Description |
---|---|
The vehicle/driver is not registered. | Follow the steps in CONSULT AND REGISTER DRIVER or CONSULT AND REGISTER VEHICLE. |