Constructor
# new DecodeVinValues(userConfigopt)
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
userConfig |
FetchConfig |
<optional> |
User configuration options to construct the class with. |
Methods
# async DecodeVinValues(vin, paramsopt) → {Promise.<DecodeVinValuesResponse>}
The DecodeVinValues API Action will decode the VIN with the Results returned in a flat file format.
- The Results will be made available in a flat file format of a single object containing
'key
: value ' results. - Providing params.modelYear allows for the decoding to specifically be done in the current,
or older (pre-1980), model year ranges.
- It is recommended to always provide
params.modelYear
if the model year is known at the time of decoding.
- It is recommended to always provide
- This Action also supports partial VIN decoding (VINs that are less than 17 characters).
- In this case, the VIN will be decoded partially with the available characters.
- In case of partial VINs, a "*" could be used to indicate the unavailable characters.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
vin |
string | Vehicle Identification Number (full or partial). |
||
params |
object |
<optional> |
{} | Query Search Parameters to append to the URL. |
modelYear |
string | number |
<optional> |
Optional Model Year search parameter. |
Api Response object.
Promise.<DecodeVinValuesResponse>