Skip to main content

sgrTrocarCarreta

Change the trailers on a trip.

SoapAction

PARAMETERS

FieldTypeRequired?Description
keyaccessstringYesKey returned by the sgrLogin method.
cdpasintegerYesPAS code, returned by the sgrListPASUser method
cdclientintegerYesCustomer code, returned by the sgrListCompaniesPASUser method.
cdtravelintegerYesBoarding authorization number.
cdCountryOriginCurrentTrailerintegerYesCode of the country of origin of the current trailer, returned by the sgrListCountries method.
nrPlacaCarretaAtualstringYesLicense plate of the current trailer.
cdPaisOrigemCarretaNovaintegerYesCode of the country of origin of the new trailer, returned by the sgrListaPais method.
nrPlacaCarretaNovastringYesLicense plate of the new trailer.
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 reaches the specified target. Send -1 when not using.

METHOD RETURN:

ReturnDataset: If the parameters are filled in correctly, the trailer is changed and the property will be displayed:

FieldTypeDescription
CDINSTRUCTIONintegerChange request code

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

ErrorDescription
There was an error making the trip trailer change.This error may be caused by an incorrect parameter, the field to be corrected will be indicated in the returnDataset property. This means you need to check the parameters and run the method again. It may also indicate a timeout or a dropped connection to the database. It is necessary to pass on the data entered, as well as the name of the method, the time of issue and the customer code to the following e-mail address: [email protected] so that the error can be validated.
There was an error when changing the trailer for the trip.In this case, the method may also return some details, as shown in Table 7.