sgrGerarVeiculoV8
Vehicle registration
PARAMETERS:
Field | Type | Required? | Description |
---|---|---|---|
keyaccess | string | Yes | Key returned by the sgrLogin method. |
cdpas | integer | Yes | PAS code, returned by the sgrListPASUser method |
cdcliente | integer | Yes | Customer code, returned by the sgrListaEmpresasPASUsuario method. |
CadastroVeiculoCompleto | class | Yes | Vehicle data, filled in the object Object CadastroVeiculoCompleto |
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 registration screen in Clipas NET will be presented below:
Figure 1: Complete vehicle registration screen in Clipas NET, Vehicle tab. In blue, the names of the parameters have been written. In red are the secondary methods.
Figure 2: Complete vehicle registration screen in Clipas NET, Owner tab.
Figure 3: Complete FP registration screen in Clipas NET, Tracker/Accessories tab.
METHOD RETURN:
ReturnDataset: If the parameters are entered correctly, the dataset will return:
Field | Type | Description |
---|---|---|
CDVEIC | integer | Code of the vehicle registered in the execution of the method |
ReturnDescription: If there is an error in the execution of the method, the object's property will display:
Error | Description |
---|---|
Vehicle could not be registered | In this case, the Web Service must return the Dataset with the code and description of the errors that made registration impossible |