sgrTrocarCarreta
Change the trailers on a trip.
PARAMETERS
Field | Type | Required? | Description |
---|---|---|---|
keyaccess | string | Yes | Key returned by the sgrLogin method. |
cdpas | integer | Yes | PAS code, returned by the sgrListPASUser method |
cdclient | integer | Yes | Customer code, returned by the sgrListCompaniesPASUser method. |
cdtravel | integer | Yes | Boarding authorization number. |
cdCountryOriginCurrentTrailer | integer | Yes | Code of the country of origin of the current trailer, returned by the sgrListCountries method. |
nrPlacaCarretaAtual | string | Yes | License plate of the current trailer. |
cdPaisOrigemCarretaNova | integer | Yes | Code of the country of origin of the new trailer, returned by the sgrListaPais method. |
nrPlacaCarretaNova | string | Yes | License plate of the new trailer. |
cdal alvo | Integer | No | Opentech 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:
Field | Type | Description |
---|---|---|
CDINSTRUCTION | integer | Change request code |
ReturnDescription: If there is an error when executing the method, the property will display:
Error | Description |
---|---|
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. |