Skip to main content

sgrConsultaVeic

Performs a vehicle query based on the license plate.

SoapAction

PARAMETERS:

FieldTypeReq.Description
keyaccessstringYesKey returned by the sgrLogin method.
cdpasintegerYesPAS code, returned by the sgrListaPASUsuario method
cdclientintegerYesClient code, returned by the sgrListCompaniesPASUser method.
cdparentsoriginintegerYesEmployee's nationality code, returned by the sgrListParents method.
nrplacastringYesVehicle license plate number.

Observation: To make it easier to understand the secondary methods, which must be called to return the codes required in the parameters listed above, an analogy between the secondary methods and the query screen in Clipas NET will be presented below.

Note that, as they are different systems, the Web Service and Clipas NET do not necessarily have to contain the same fields.

Figure 1: Vehicle query screen in Clipas NET. In blue, the names of the parameters have been written. In red are the secondary methods.

METHOD RETURN:

ReturnDataset: If the parameters are correct, the dataset will display:

FieldTypeDescription
CDVEICintegerVehicle code
NRPLACAstringVehicle license plate
FLSITVEICintegerSituation
DSSITUATIONstringDescription of the situation. The status of the registration can be: 0-Waiting for Search; 1-In Search; 2-Indicated; 3-Not Indicated; 4-Cancelled; 5-Waiting for Contact; 6-Registration Expired; 7-Provisional Release; 8-No Search; 9-Not Indicated - Driver's License Expired; 10-Driver Suspended; 11-Vehicle Under Maintenance; 12-Released One Trip; 13-In Analysis.
DTCONSULTAdatetimeDate of Consultation
DTEXPIRATIONdatetimeExpiration Date
PASSWORDstringDriver Password
DSTPVEICstringVehicle Type Description
FLSITMANUTstringMaintenance status code
DSSITMANUTstringMaintenance situation Description
CDVIAGLOGISTICAintegerIndicates whether it is on a logistics trip
CDOPERACAOintegerVehicle operation code at the customer
CDUNIDADERESPintegerCode of the unit responsible for the vehicle at the client

ReturnDescription: If there is an error in the execution of the method, the object's property will display:

Information:

License plate not registered: If the query returns this message, it means that the vehicle searched for has not yet been entered into the system. If the customer does not have the registration service, to add it, simply use the following object and method.