Skip to main content

sgrTrocarMotorista

Changing the driver of a Boarding Authorization

SoapAction

PARÂMETROS

CampoTipoRequerido?Descrição
chaveacessostringSimChave retornada pelo método sgrLogin.
cdpasinteiroSim
PAS code, returned by the sgrListaPASUsuario method
cdclienteintegerYesCustomer code, returned by the sgrListaEmpresasUsuario method.
cdviagemintegerNo *Boarding authorization number. * It is mandatory to enter the number of the AE or schedule.
cdpaisorigemmotatualintegerYesCode of the current driver's country of origin, returned by the sgrListaPais method.
nrdocmotoristaatualstringYesCPF number of the current driver of the boarding authorization.
cdpaisorigemmotnovointegerYesCountry code of the new horse, returned by the sgrListaPais method.
nrdocmotoristanovostringYesCPF number of the new driver on the boarding authorization.
cdal alvoIntegerNoOpentech target code, returned by the sgrListaAlvosClienteInstrucao method. This field, when filled with a valid target code, indicates that the exchange will not be made immediately, only when the vehicle arrives at the target. Send -1 when not using.
nrprogramacaostringNo *Number of the schedule, so that the system searches for the trip generated from the schedule. * It is mandatory to enter the AE or schedule number.

**METHOD RETURN

If the parameters are filled in correctly, the driver will be changed and ReturnDataset will display:

FieldTypeDescription
CDINSTRUCTIONintegerRequest code

ReturnDescription: If there is an error when executing the method, the property will display:

ErrorDescription
There was an error changing the driver of the trip. Try againThis error may be caused by an incorrect parameter, the field to be corrected will be indicated in the returnDataset property. You should then check the parameters and run the method again. The error may also have been caused by a timeout or dropped connection. In this case, you should send the parameters, along with the issue time and customer code, to the following e-mail address: [email protected] so that the error can be validated.
There was an error when changing the driver for the trip. CheckIn this case, the method can also return the details listed in Table 5: Errors when changing the driver of an AE.