sgrTrocarRota
Change the route of a Boarding Authorization.
PARAMETERS
Field | Type | Req. | Description |
---|---|---|---|
keyaccess | string | Yes | Key returned by the sgrLogin method. |
cdpas | integer | Yes | PAS code, returned by the sgrListaPASUsuario method |
cdclient | integer | Yes | Customer code, returned by the sgrListCompaniesPASUser method. |
cdtravel | integer | Yes | Boarding authorization number. |
cdroutecurrent | string | Yes | Current route code of the Boarding Authorization. |
cdrotanova | string | Yes | New route code. This code is returned by the sgrListRoutes method. |
cdciddestino | Integer | No | Code of the new destination city, returned by the sgrListCities method. To keep the current city, send -1. |
dtprevisaofimviagem | string | No | New 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:
Field | Type | Description |
---|---|---|
CDINSTRUCTION | integer | Request code |
ReturnDescription: If there is an error when executing the method, the property will display:
Error | Description |
---|---|
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. |