Skip to main content

sgrTrocarRota

Change the route of a Boarding Authorization.

SoapAction

PARAMETERS

FieldTypeReq.Description
keyaccessstringYesKey returned by the sgrLogin method.
cdpasintegerYesPAS code, returned by the sgrListaPASUsuario method
cdclientintegerYesCustomer code, returned by the sgrListCompaniesPASUser method.
cdtravelintegerYesBoarding authorization number.
cdroutecurrentstringYesCurrent route code of the Boarding Authorization.
cdrotanovastringYesNew route code. This code is returned by the sgrListRoutes method.
cdciddestinoIntegerNoCode of the new destination city, returned by the sgrListCities method. To keep the current city, send -1.
dtprevisaofimviagemstringNoNew travel end date. Enter in “YYYY-MM-DD” format.

METHOD RETURN:

ReturnDataset: If the parameters are filled in correctly, the method will change the route on the trip and will display:

FieldTypeDescription
CDINSTRUCTIONintegerRequest code

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

ErrorDescription
There was an error when changing the route of the trip.This 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] to validate the error.
There was an error when changing the route of the trip.For these errors, the method can return the details listed in Table 9.