Skip to main content

sgrAlterarPrevisaoFimViagem

Change the estimated end date of the Boarding Authorization.

SoapAction

PARAMETERS

FieldTypeRequired?Description
keyaccessstringYesKey returned by the sgrLogin method.
cdpasintegerYesPAS code, returned by the sgrListaPASUsuario method
cdclientintegerYesCustomer code, returned by the sgrListCompaniesPASUser method.
cdtravelintegerYesBoarding authorization number.
dtprevisaofimstringYesNew estimated date for the end of the trip.Format “YYYY-MM-DD”

METHOD RETURN:

ReturnID: If the access key entered is valid and the other parameters are filled in correctly, the property will have the value 0 (zero), which means that the date has been changed successfully.

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

ErrorDescription
This error means that the date was entered incorrectly.The date must be entered in the format specified in the PARAMETERS item.
This means that the date has not been entered.You must enter a valid date, as specified in PARAMETERS.
There was an error connecting to the database. Try again.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 method name, issue time and customer code to the e-mail address: [email protected] so that the error can be validated.

ReturnDataset: For this method, the dataset can also indicate the problem:

CodeError DescriptionResolution
1It is mandatory to enter the customer code.In this case, the customer was not entered when the parameters were passed. The customer must be filled in according to the PARAMETERS item.
5You must enter the trip number.This error means that the trip has not been found. You must enter the customer's Boarding Authorization number.