sgrTrocarCarretaAE
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. |
cdclienteopentech | integer | Yes | Customer code, returned by the sgrListCompaniesPASUsers method. |
cdviagem | integer | Yes | Shipment authorization number. |
nrplacacarreta actual | string | Yes | Current trailer license plate. |
nrplacacarretanova | string | Yes | New trailer license plate. |
cdalvoopentech | 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 exchanged and the property will display:
Field | Type | Description |
---|---|---|
CDINSTRUCTION | integer | Code of the exchange request registered with Opentech |
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. |