Skip to main content

sgrAtualizarUnidadeRespVeiculoMotorista

Maintain the responsible unit used by the vehicle/driver

SoapAction

PARAMETERS

FieldTypeReq.Description
keyaccessstringYesKey returned by the sgrLogin method.
cdpasintegerYesPAS code, returned by the sgrListaPASUsuario method
cdclienteintegerYesCustomer code, returned by the sgrListaEmpresasPASUsuario method.
flTypestringYesUpdate type (“M” for driver and “V” for vehicle).
cdpaisorigemintegerYesCode of the vehicle/driver's country of origin, returned by the sgrListaPais method.
nrPlacanrDocMotoriststringYesLicense plate or document number (CPF).
cdunidaderespintegerYesOperation 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:

ErrorDescription
The vehicle/driver is not registered.Follow the steps in CONSULT AND REGISTER DRIVER or CONSULT AND REGISTER VEHICLE.