sgrTrocarCavalo
Changing the horse of a Boarding Authorization.
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. |
cdpaisorigacaatual | integer | Yes | Country of origin code of the current vehicle, returned by the sgrListaPais method. |
nrplacacavaloatual | string | Yes | License plate of the current vehicle. |
cdpaisoremplacanova | integer | Yes | Country code of the new horse, returned by the sgrListaPais method. |
nrplacacavalonovo | string | Yes | License plate of the new horse. |
cdalvoir | 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 property will display:
Field | Type | Description |
---|---|---|
CDINSTRUCTION | integer | Exchange request code |
ReturnDescription: If there is an error when executing the method, the property will display:
Error | Description |
---|---|
There was an error making the change to the ride horse. Check. | In this case, the method may also return the details listed in Table 6. |