# AutotecApiJsClient.VehicleApi

All URIs are relative to *https://api.prod.autotec.com/1_0_1*

Method | HTTP request | Description
------------- | ------------- | -------------
[**calcRisk**](VehicleApi.md#calcRisk) | **POST** /vehicle/risk | Calculates Risk of Loss for Requested Vehicles
[**historyFull**](VehicleApi.md#historyFull) | **POST** /vehicle/history/full | 


<a name="calcRisk"></a>
# **calcRisk**
> RiskCalculationResponse calcRisk(request)

Calculates Risk of Loss for Requested Vehicles

Method for calculating Loss Risk Prediction for a list of vehicles. The different types of Loss Risk Prediction varies in the algorithm multipliers and the history activity to utilize for each categorization of historical activity.

### Example
```javascript
var AutotecApiJsClient = require('autotec-api-js-client');
var defaultClient = AutotecApiJsClient.ApiClient.instance;

// Configure API key authorization: OrganizationAuthorizer
var OrganizationAuthorizer = defaultClient.authentications['OrganizationAuthorizer'];
OrganizationAuthorizer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//OrganizationAuthorizer.apiKeyPrefix = 'Token';

// Configure API key authorization: api_key
var api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';

var apiInstance = new AutotecApiJsClient.VehicleApi();

var request = new AutotecApiJsClient.RiskCalculationRequest(); // RiskCalculationRequest | The calculation request


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.calcRisk(request, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **request** | [**RiskCalculationRequest**](RiskCalculationRequest.md)| The calculation request | 

### Return type

[**RiskCalculationResponse**](RiskCalculationResponse.md)

### Authorization

[OrganizationAuthorizer](../README.md#OrganizationAuthorizer), [api_key](../README.md#api_key)

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

<a name="historyFull"></a>
# **historyFull**
> FullHistoryResponse historyFull(request)



Method to retrieve vehicle history and ownership data (if authorized) for a list of vehicles.

### Example
```javascript
var AutotecApiJsClient = require('autotec-api-js-client');
var defaultClient = AutotecApiJsClient.ApiClient.instance;

// Configure API key authorization: OrganizationAuthorizer
var OrganizationAuthorizer = defaultClient.authentications['OrganizationAuthorizer'];
OrganizationAuthorizer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//OrganizationAuthorizer.apiKeyPrefix = 'Token';

// Configure API key authorization: api_key
var api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';

var apiInstance = new AutotecApiJsClient.VehicleApi();

var request = new AutotecApiJsClient.HistoryRequest(); // HistoryRequest | The vehicle history request


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.historyFull(request, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **request** | [**HistoryRequest**](HistoryRequest.md)| The vehicle history request | 

### Return type

[**FullHistoryResponse**](FullHistoryResponse.md)

### Authorization

[OrganizationAuthorizer](../README.md#OrganizationAuthorizer), [api_key](../README.md#api_key)

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

