Skip to main content

sgrTrocarMotoristaAE

Changing the driver of a Boarding Authorization.

SoapAction

PARAMETERS

FieldTypeReq.Description
keyaccessstringYesKey returned by the sgrLogin method.
cdpasintegerYesPAS code, returned by the sgrListaPASUsuario method
cdclienteopentechintegerYesCustomer code, returned by the sgrListCompaniesPASUsers method.
cdviagemintegerYesBoarding authorization number.
nrdocmotoristaatualstringYesCPF number of the current driver on the boarding authorization.
nrdocmotoristanovostringYesCPF number of the new driver on the boarding authorization.
cdalvoopentechIntegerNoOpentech 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.

METHOD RETURN:

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

FieldTypeDescription
CDINSTRUCTIONintegerCode of the exchange request registered with Opentech

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

ErrorDescription
There was an error when changing the driver of the trip.In this case, the method can return specific errors, as shown in Table 5: Errors when changing the driver of an AE trip.