Important: This documentation applies to v2 of this package.
For v3 docs see vpic.shaggytech.com

Class

DecodeVINValuesBatch

api/actions/DecodeVINValuesBatch.DecodeVINValuesBatch(userConfigopt)

Implemented by NHTSA.

Extends api/Fetch.Fetch.

Constructor

# new DecodeVINValuesBatch(userConfigopt)

Parameters:
Name Type Attributes Description
userConfig FetchConfig <optional>

User configuration options to construct the class with.

View Source api/actions/DecodeVINValuesBatch.ts, line 27

Methods

# async DecodeVINValuesBatch(inputString) → {Promise.<DecodeVINValuesBatchResponse>}

This decodes a batch of VINs that are submitted in a standardized format in a string and returns multiple decodes in a flat format.

The inputString parameter should be in the following format:

  • vin , modelYear ; vin , modelYear ; vin , modelYear ...

"modelYear" is optional, the output for each VIN decode is in the same format as produced by the "Decode VIN (flat format)" method.

Parameters:
Name Type Description
inputString string

A string of Vehicle Identification Numbers (full or partial) following the format listed in the description.

View Source api/actions/DecodeVINValuesBatch.ts, line 44

  • Api Response object.