CarsXECarsXE

Use this guide to migrate a VIN-based identity lookup from DataOne Software to CarsXE Specifications. The before example uses DataOne's publicly documented XML VIN Decoder v6. If your account uses an Advanced VIN Decoder API configuration, use the request and response contract from your DataOne client portal and apply the CarsXE mapping to your own identity fields. See the DataOne comparison.

Prerequisites

Choose the CarsXE endpoint

WorkflowDataOne XML VIN Decoder v6CarsXEFit
Enrich a single VIN with identity and basic specsGET your account's decoder URL with client_id, auth_code, and vinsGET https://api.carsxe.com/specs with key and one 17-character vinPartial match. Core identity overlaps. XML style rows give way to JSON attributes with different field coverage.
Resolve an ambiguous VIN using a DataOne style ID or OEM model numberstyle_ids, model_numbers, and style results/specs accepts the VINUnsupported. Preserve these keys and routing if your workflow depends on selecting an exact style.
Verify installed options, packages, or colorsLicensed OEM Build Data or Verified RecordsSpecifications may return equipment availability and color optionsUnsupported as a verification substitute. Catalog options do not establish the build of a specific vehicle.

DataOne XML v6 can take multiple VINs. CarsXE Specifications takes one VIN per request. If you fan out an existing batch, bound concurrency, handle each result separately, and budget for each lookup. Compare your DataOne account's request and pack limits with CarsXE rate limits and quotas. CarsXE Specifications is deepest for US-market vehicles. Review its international fallback for non-US traffic. DataOne XML VIN Decoder v6 manual

Before and after

DataOne. Set DATAONE_DECODER_URL, DATAONE_CLIENT_ID, and DATAONE_AUTH_CODE from your XML v6 account. The XML below is an illustrative excerpt of the manual's single-style response shape. Packs and settings determine which elements your account returns.

curl --get "${DATAONE_DECODER_URL}" \
  --data-urlencode "client_id=${DATAONE_CLIENT_ID}" \
  --data-urlencode "auth_code=${DATAONE_AUTH_CODE}" \
  --data-urlencode 'vins=WBAFR7C57CC811956'
<decoded_vin_data>
  <vin_number value="WBAFR7C57CC811956">
    <available_vehicle_styles>
      <vehicle_style>
        <basic_data>
          <year>2012</year>
          <make>BMW</make>
          <model>5 Series</model>
          <trim>535i</trim>
        </basic_data>
      </vehicle_style>
    </available_vehicle_styles>
  </vin_number>
</decoded_vin_data>

CarsXE. Set CARSXE_API_KEY to the literal YOUR_CARSXE_API_KEY to inspect the public BMW sample. Then use your real key and VINs from your inventory on both sides.

curl --get 'https://api.carsxe.com/specs' \
  --data-urlencode "key=${CARSXE_API_KEY}" \
  --data-urlencode 'vin=WBAFR7C57CC811956'
{
  "success": true,
  "attributes": {
    "year": "2012",
    "make": "BMW",
    "model": "5-Series",
    "trim": "535i",
    "drivetrain": "RWD"
  }
}

Map the response fields

Application fieldDataOne XML v6CarsXE JSONMigration change
Vehicle identifiervin_number/@value (attribute text)input.vin (string)Associate each CarsXE result with the VIN you submitted.
Identityvehicle_style/basic_data/{year,make,model,trim} (element text)attributes.{year,make,model,trim} (strings when present)Map into your existing identity model. Keep unknown trim and compare labels before catalog joins.
Drivetrainspecifications/category/drive_type (element text where enabled)attributes.drivetrain (string when present)Partial match. Normalize values before comparing.
Candidate styles and optionsvehicle_style/@style_id, style rows and equipment elementsattributes.style is descriptive text and equipment is a keyed object when presentPartial match. A style label cannot replace a DataOne ID. Keep verified installed equipment separate from availability.

Adapt your client and test failures

In DataOne XML v6, check decoder_error before individual vin_error elements. For example, the manual documents IV in vin_error/error_code for an invalid VIN. In CarsXE, use HTTP status and the JSON response. Omitting vin from the CarsXE request returned HTTP 400 with this response.

{
  "success": false,
  "message": "Missing vin (vehicle identification number)"
}

Replace the XML style reader with a JSON adapter for the identity fields. The example returns an empty result on HTTP 404. If your workflow needs broader coverage, try the VIN once with deepdata=1 before treating it as a miss. The deeper search adds latency. Keep validation, access, and usage failures separate. Specifications errors · CarsXE errors

async function getVehicleIdentity(vin, key) {
  const url = new URL("https://api.carsxe.com/specs");
  url.search = new URLSearchParams({ key, vin }).toString();
  const response = await fetch(url, { signal: AbortSignal.timeout(10_000) });
  if (response.status === 404) return null;
  if (!response.ok) throw new Error(`CarsXE Specifications returned HTTP ${response.status}`);

  const result = await response.json();
  if (result.success !== true) throw new Error("CarsXE Specifications was unsuccessful");

  const { year, make, model, trim } = result.attributes ?? {};
  return {
    vin,
    year: year?.trim() || null,
    make: make?.trim() || null,
    model: model?.trim() || null,
    trim: trim?.trim() || null,
  };
}

Cut over production traffic