Skip to main content

sgrTrocarCavalo

Changing the horse of a Boarding Authorization.

SoapAction

PARAMETERS

FieldTypeRequired?Description
keyaccessstringYesKey returned by the sgrLogin method.
cdpasintegerYesPAS code, returned by the sgrListPASUser method
cdclientintegerYesCustomer code, returned by the sgrListCompaniesPASUser method.
cdtravelintegerYesBoarding authorization number.
cdpaisorigacaatualintegerYesCountry of origin code of the current vehicle, returned by the sgrListaPais method.
nrplacacavaloatualstringYesLicense plate of the current vehicle.
cdpaisoremplacanovaintegerYesCountry code of the new horse, returned by the sgrListaPais method.
nrplacacavalonovostringYesLicense plate of the new horse.
cdalvoirIntegerNoOpentech 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:

FieldTypeDescription
CDINSTRUCTIONintegerExchange request code

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

ErrorDescription
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.