# AciServicesApi.VehicleApi

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

Method | HTTP request | Description
------------- | ------------- | -------------
[**calcRisk**](VehicleApi.md#calcRisk) | **POST** /vehicle/risk | Calculate Risk of Loss for Requested Vehicles
[**calcRiskPlus**](VehicleApi.md#calcRiskPlus) | **POST** /vehicle/risk/plus | Calculate Risk of Loss and return Full History for Requested Vehicles


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

Calculate 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 AciServicesApi = require('aci_services_api');
var defaultClient = AciServicesApi.ApiClient.instance;

// Configure API key authorization: CustomerAuthorizer
var CustomerAuthorizer = defaultClient.authentications['CustomerAuthorizer'];
CustomerAuthorizer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//CustomerAuthorizer.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 AciServicesApi.VehicleApi();

var xApiKey = "xApiKey_example"; // String | the AutoTec assigned authentication credential for the calling customer

var xAutotecId = "xAutotecId_example"; // String | the AutoTec assigned identification id for the calling customer

var request = new AciServicesApi.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(xApiKey, xAutotecId, request, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **xApiKey** | **String**| the AutoTec assigned authentication credential for the calling customer | 
 **xAutotecId** | **String**| the AutoTec assigned identification id for the calling customer | 
 **request** | [**RiskCalculationRequest**](RiskCalculationRequest.md)| The calculation request | 

### Return type

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

### Authorization

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

### HTTP request headers

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

<a name="calcRiskPlus"></a>
# **calcRiskPlus**
> RiskCalculationPlusResponse calcRiskPlus(xApiKey, xAutotecId, request)

Calculate Risk of Loss and return Full History for Requested Vehicles

Method for calculating Loss Risk Prediction and returning Full History 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 AciServicesApi = require('aci_services_api');
var defaultClient = AciServicesApi.ApiClient.instance;

// Configure API key authorization: CustomerAuthorizer
var CustomerAuthorizer = defaultClient.authentications['CustomerAuthorizer'];
CustomerAuthorizer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//CustomerAuthorizer.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 AciServicesApi.VehicleApi();

var xApiKey = "xApiKey_example"; // String | the AutoTec assigned authentication credential for the calling customer

var xAutotecId = "xAutotecId_example"; // String | the AutoTec assigned identification id for the calling customer

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


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **xApiKey** | **String**| the AutoTec assigned authentication credential for the calling customer | 
 **xAutotecId** | **String**| the AutoTec assigned identification id for the calling customer | 
 **request** | [**RiskCalculationRequest**](RiskCalculationRequest.md)| The request | 

### Return type

[**RiskCalculationPlusResponse**](RiskCalculationPlusResponse.md)

### Authorization

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

### HTTP request headers

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

