{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/wenmarpro-com/json-schema/wenmarpro-com-vin-decode-schema.json",
  "title": "VinDecode",
  "description": "A decoded VIN. A field that could not be determined is left out.",
  "x-generated": "2026-11-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/wenmarpro-com-open-openapi.json#/components/schemas/VinDecode",
  "type": "object",
  "required": [
    "vin",
    "valid",
    "check_digit",
    "manufacturer",
    "plant",
    "warnings",
    "year_conclusive"
  ],
  "properties": {
    "attributes": {
      "type": "object",
      "description": "Every attribute the decode resolved, by NHTSA's element code as\nNHTSA's own API names it, with where it came from. The fields above\nare taken from these; this also holds the ones they leave out.",
      "additionalProperties": {
        "$ref": "#/$defs/Attribute"
      },
      "propertyNames": {
        "type": "string"
      }
    },
    "axle_configuration": {
      "type": [
        "string",
        "null"
      ]
    },
    "axles": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32",
      "minimum": 0
    },
    "base_price_usd": {
      "type": [
        "number",
        "null"
      ],
      "format": "double",
      "description": "Manufacturer base price in US dollars, when NHTSA has one."
    },
    "bed_length_in": {
      "type": [
        "number",
        "null"
      ],
      "format": "double"
    },
    "bed_type": {
      "type": [
        "string",
        "null"
      ]
    },
    "body": {
      "type": [
        "string",
        "null"
      ]
    },
    "body_style": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/$defs/BodyStyle",
          "description": "The body in one word. `body` has NHTSA's words."
        }
      ]
    },
    "brake_system": {
      "type": [
        "string",
        "null"
      ],
      "description": "Service brakes, such as `Hydraulic` or `Air`."
    },
    "brake_system_description": {
      "type": [
        "string",
        "null"
      ]
    },
    "cab_type": {
      "type": [
        "string",
        "null"
      ],
      "description": "Cab type of a truck, as NHTSA words it."
    },
    "catalog": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/$defs/Selection",
          "description": "The catalog entry this VIN reaches, for prefilling a vehicle form.\nLeft out when the catalog cannot place the vehicle."
        }
      ]
    },
    "check_digit": {
      "$ref": "#/$defs/CheckDigit"
    },
    "curb_weight_lb": {
      "type": [
        "number",
        "null"
      ],
      "format": "double"
    },
    "destination_market": {
      "type": [
        "string",
        "null"
      ],
      "description": "The market the vehicle was built for, when NHTSA records one."
    },
    "doors": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32",
      "minimum": 0
    },
    "drive": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/$defs/Drive",
          "description": "The drive in one of five words. Left out when NHTSA's value fits\nnone of them, such as `6x4`; `drivetrain` still has it."
        }
      ]
    },
    "drivetrain": {
      "type": [
        "string",
        "null"
      ]
    },
    "electric": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/$defs/Electric",
          "description": "Battery and charging, for an electric or hybrid vehicle."
        }
      ]
    },
    "engine": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/$defs/Engine"
        }
      ]
    },
    "generation": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/$defs/Generation",
          "description": "The generation of the model this model year belongs to, from\ncorgi-rs's table. Left out for a model the table does not list."
        }
      ]
    },
    "gvwr": {
      "type": [
        "string",
        "null"
      ],
      "description": "Gross vehicle weight rating class, as NHTSA words it."
    },
    "gvwr_to": {
      "type": [
        "string",
        "null"
      ],
      "description": "Upper end of the gross vehicle weight rating class, when NHTSA gives\na range."
    },
    "make": {
      "type": [
        "string",
        "null"
      ]
    },
    "manufacturer": {
      "$ref": "#/$defs/Manufacturer"
    },
    "model": {
      "type": [
        "string",
        "null"
      ]
    },
    "notes": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Free-text notes the manufacturer filed, such as other engine or\nrestraint information, each once."
    },
    "plant": {
      "$ref": "#/$defs/Plant"
    },
    "recalls": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/$defs/VinRecallCount",
          "description": "How many recall campaigns may apply to the model year. Only in a\nbatch asked with `include=recalls`, and only when the VIN reaches a\nmodel year of the catalog."
        }
      ]
    },
    "safety": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/$defs/Safety"
        }
      ]
    },
    "seat_rows": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32",
      "minimum": 0
    },
    "seats": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32",
      "minimum": 0
    },
    "series": {
      "type": [
        "string",
        "null"
      ]
    },
    "series2": {
      "type": [
        "string",
        "null"
      ]
    },
    "steering": {
      "type": [
        "string",
        "null"
      ]
    },
    "top_speed_mph": {
      "type": [
        "number",
        "null"
      ],
      "format": "double"
    },
    "track_width_in": {
      "type": [
        "number",
        "null"
      ],
      "format": "double"
    },
    "transmission": {
      "type": [
        "string",
        "null"
      ]
    },
    "transmission_speeds": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32",
      "minimum": 0
    },
    "trim": {
      "type": [
        "string",
        "null"
      ]
    },
    "trim2": {
      "type": [
        "string",
        "null"
      ]
    },
    "valid": {
      "type": "boolean",
      "description": "Whether the check digit, position 9, is right. Many genuine VINs from\noutside North America fail it."
    },
    "vin": {
      "type": "string"
    },
    "warnings": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Warning"
      },
      "description": "Things to know about a decode that still succeeded."
    },
    "wheel_size_front": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32",
      "description": "Front wheel diameter in inches.",
      "minimum": 0
    },
    "wheel_size_rear": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32",
      "description": "Rear wheel diameter in inches.",
      "minimum": 0
    },
    "wheelbase_in": {
      "type": [
        "number",
        "null"
      ],
      "format": "double",
      "description": "Wheelbase in inches, or the shorter end of a range."
    },
    "wheelbase_to_in": {
      "type": [
        "number",
        "null"
      ],
      "format": "double",
      "description": "The longer end of the wheelbase range, in inches."
    },
    "wheels": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32",
      "minimum": 0
    },
    "year": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32",
      "minimum": 0
    },
    "year_conclusive": {
      "type": "boolean",
      "description": "Whether the model year is settled. Position 10 repeats every 30\nyears. For cars, multipurpose vehicles and light trucks position 7\nsettles which cycle; for other vehicles the year is the one the data\nexplains better, and it is not settled when both years have data.\nCheck the year on the vehicle's label when this is `false`."
    }
  },
  "$defs": {
    "Attribute": {
      "type": "object",
      "description": "One attribute of a decode.",
      "required": [
        "name",
        "value",
        "source"
      ],
      "properties": {
        "name": {
          "type": "string",
          "description": "NHTSA's name for it."
        },
        "source": {
          "$ref": "#/$defs/AttributeSource"
        },
        "value": {
          "type": "string",
          "description": "Its value as NHTSA words it. Notes that came more than once are\njoined with `; `."
        }
      }
    },
    "AttributeSource": {
      "type": "string",
      "description": "Where an attribute's value came from.",
      "enum": [
        "vin_pattern",
        "engine_model",
        "specification_sheet"
      ]
    },
    "BodyStyle": {
      "type": "string",
      "description": "The body, in one word. `suv` takes crossovers; `pickup` takes sport\nutility trucks; `van` takes cargo, passenger and step vans; `incomplete`\nis a chassis another company finishes.",
      "enum": [
        "sedan",
        "coupe",
        "convertible",
        "hatchback",
        "wagon",
        "suv",
        "minivan",
        "van",
        "pickup",
        "truck",
        "bus",
        "motorhome",
        "incomplete",
        "motorcycle",
        "off_road",
        "low_speed",
        "trailer",
        "other"
      ]
    },
    "CheckDigit": {
      "type": "object",
      "required": [
        "valid",
        "expected",
        "actual"
      ],
      "properties": {
        "actual": {
          "type": "string",
          "description": "What position 9 is."
        },
        "expected": {
          "type": "string",
          "description": "What position 9 should be."
        },
        "valid": {
          "type": "boolean"
        }
      }
    },
    "Drive": {
      "type": "string",
      "description": "The drive, in the words shops use.",
      "enum": [
        "FWD",
        "RWD",
        "AWD",
        "4WD",
        "2WD"
      ]
    },
    "Electric": {
      "type": "object",
      "description": "Battery and charging, as the manufacturer reported them.",
      "properties": {
        "battery_info": {
          "type": [
            "string",
            "null"
          ]
        },
        "battery_kwh": {
          "type": [
            "number",
            "null"
          ],
          "format": "double",
          "description": "Energy in kWh, or the lower end of a range."
        },
        "battery_kwh_to": {
          "type": [
            "number",
            "null"
          ],
          "format": "double"
        },
        "battery_type": {
          "type": [
            "string",
            "null"
          ]
        },
        "battery_volts": {
          "type": [
            "number",
            "null"
          ],
          "format": "double",
          "description": "Voltage, or the lower end of a range."
        },
        "battery_volts_to": {
          "type": [
            "number",
            "null"
          ],
          "format": "double"
        },
        "charger_level": {
          "type": [
            "string",
            "null"
          ]
        },
        "charger_power_kw": {
          "type": [
            "number",
            "null"
          ],
          "format": "double"
        },
        "drive_unit": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "Engine": {
      "type": "object",
      "properties": {
        "configuration": {
          "type": [
            "string",
            "null"
          ]
        },
        "cooling": {
          "type": [
            "string",
            "null"
          ],
          "description": "Such as `Water` or `Air`."
        },
        "cylinders": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32",
          "minimum": 0
        },
        "displacement_cc": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32",
          "minimum": 0
        },
        "displacement_l": {
          "type": [
            "number",
            "null"
          ],
          "format": "double"
        },
        "electrification": {
          "type": [
            "string",
            "null"
          ]
        },
        "fuel": {
          "type": [
            "string",
            "null"
          ]
        },
        "fuel_injection": {
          "type": [
            "string",
            "null"
          ]
        },
        "fuel_secondary": {
          "type": [
            "string",
            "null"
          ],
          "description": "The second fuel of a flexible-fuel or bi-fuel engine."
        },
        "hp": {
          "type": [
            "number",
            "null"
          ],
          "format": "double",
          "description": "Brake horsepower, or the lower end of a range."
        },
        "hp_to": {
          "type": [
            "number",
            "null"
          ],
          "format": "double",
          "description": "The upper end of the horsepower range."
        },
        "kw": {
          "type": [
            "number",
            "null"
          ],
          "format": "double",
          "description": "Power in kilowatts, as the manufacturer reported it."
        },
        "label": {
          "type": [
            "string",
            "null"
          ],
          "description": "The short name shops use, such as `2.0L Turbo` or `3.5L V6`."
        },
        "manufacturer": {
          "type": [
            "string",
            "null"
          ],
          "description": "Who made the engine."
        },
        "model": {
          "type": [
            "string",
            "null"
          ]
        },
        "stroke_cycles": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32",
          "description": "Two- or four-stroke.",
          "minimum": 0
        },
        "turbo": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "valve_train": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "Entry": {
      "type": "object",
      "description": "One vehicle of the catalog, down to whatever level was asked for.",
      "required": [
        "id",
        "year",
        "make",
        "model",
        "vehicle_types",
        "summary"
      ],
      "properties": {
        "body": {
          "type": [
            "string",
            "null"
          ]
        },
        "drive": {
          "type": [
            "string",
            "null"
          ]
        },
        "engine": {
          "type": [
            "string",
            "null"
          ]
        },
        "id": {
          "type": "string",
          "description": "The stable id. It stays the same from one data release to the next\nfor as long as the names do."
        },
        "make": {
          "type": "string"
        },
        "model": {
          "type": "string"
        },
        "submodel": {
          "type": [
            "string",
            "null"
          ]
        },
        "summary": {
          "type": "string",
          "description": "One line naming everything above that is known."
        },
        "transmission": {
          "type": [
            "string",
            "null"
          ]
        },
        "vehicle_types": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "NHTSA's vehicle types for this model year, such as `Truck`."
        },
        "year": {
          "type": "integer",
          "format": "int32",
          "minimum": 0
        }
      }
    },
    "Generation": {
      "type": "object",
      "description": "One generation of a model: a run of model years between redesigns.",
      "required": [
        "name",
        "year_from"
      ],
      "properties": {
        "code": {
          "type": [
            "string",
            "null"
          ],
          "description": "The maker's platform or chassis code, when there is one."
        },
        "name": {
          "type": "string",
          "description": "How the generation is known."
        },
        "ordinal": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32",
          "description": "Its number, when it has one that is commonly used.",
          "minimum": 0
        },
        "year_from": {
          "type": "integer",
          "format": "int32",
          "minimum": 0
        },
        "year_to": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32",
          "description": "Left out while the generation is still made.",
          "minimum": 0
        }
      }
    },
    "Manufacturer": {
      "type": "object",
      "required": [
        "wmi",
        "name"
      ],
      "properties": {
        "country": {
          "type": [
            "string",
            "null"
          ]
        },
        "name": {
          "type": "string"
        },
        "vehicle_type": {
          "type": [
            "string",
            "null"
          ]
        },
        "wmi": {
          "type": "string",
          "description": "The manufacturer code: three characters, or six for a low-volume\nmaker."
        }
      }
    },
    "Plant": {
      "type": "object",
      "description": "Where the vehicle was built. `code` is position 11 of the VIN.",
      "required": [
        "code"
      ],
      "properties": {
        "city": {
          "type": [
            "string",
            "null"
          ]
        },
        "code": {
          "type": "string"
        },
        "company": {
          "type": [
            "string",
            "null"
          ]
        },
        "country": {
          "type": [
            "string",
            "null"
          ]
        },
        "state": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "RecallCount": {
      "type": "object",
      "description": "How many recall campaigns list a model year, for each country. `null`\nfor a country this server holds no recalls for; `0` when it holds them\nand none lists the model year.",
      "properties": {
        "ca": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32",
          "minimum": 0
        },
        "us": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32",
          "minimum": 0
        }
      }
    },
    "RecallLookup": {
      "type": "object",
      "description": "Where to check one vehicle for open recalls. Neither government\npublishes recalls by VIN as data, so no answer here can say a recall\napplies to a VIN: these lookups can.",
      "required": [
        "nhtsa",
        "tc"
      ],
      "properties": {
        "maker": {
          "type": [
            "string",
            "null"
          ],
          "description": "The maker's own lookup by VIN, where one is on file."
        },
        "nhtsa": {
          "type": "string",
          "description": "NHTSA's lookup by VIN, for the United States."
        },
        "tc": {
          "type": "string",
          "description": "Transport Canada's recall search, for Canada."
        }
      }
    },
    "Safety": {
      "type": "object",
      "description": "Safety equipment as the manufacturer reported it: `Standard`, `Optional`,\nor a system type such as `Direct`.",
      "properties": {
        "abs": {
          "type": [
            "string",
            "null"
          ]
        },
        "adaptive_cruise": {
          "type": [
            "string",
            "null"
          ]
        },
        "adaptive_driving_beam": {
          "type": [
            "string",
            "null"
          ]
        },
        "adaptive_headlights": {
          "type": [
            "string",
            "null"
          ],
          "description": "Headlamps that turn with the steering."
        },
        "airbags_curtain": {
          "type": [
            "string",
            "null"
          ]
        },
        "airbags_front": {
          "type": [
            "string",
            "null"
          ]
        },
        "airbags_knee": {
          "type": [
            "string",
            "null"
          ]
        },
        "airbags_seat_cushion": {
          "type": [
            "string",
            "null"
          ]
        },
        "airbags_side": {
          "type": [
            "string",
            "null"
          ]
        },
        "auto_brake": {
          "type": [
            "string",
            "null"
          ]
        },
        "auto_reverse_windows": {
          "type": [
            "string",
            "null"
          ],
          "description": "Auto-reverse for power windows and sunroofs."
        },
        "automatic_high_beams": {
          "type": [
            "string",
            "null"
          ],
          "description": "Semiautomatic headlamp beam switching."
        },
        "backup_camera": {
          "type": [
            "string",
            "null"
          ]
        },
        "blind_spot": {
          "type": [
            "string",
            "null"
          ]
        },
        "crash_notification": {
          "type": [
            "string",
            "null"
          ],
          "description": "Automatic or advanced automatic crash notification."
        },
        "daytime_running_lights": {
          "type": [
            "string",
            "null"
          ]
        },
        "dynamic_brake_support": {
          "type": [
            "string",
            "null"
          ]
        },
        "esc": {
          "type": [
            "string",
            "null"
          ]
        },
        "event_data_recorder": {
          "type": [
            "string",
            "null"
          ]
        },
        "forward_collision": {
          "type": [
            "string",
            "null"
          ]
        },
        "headlamp_light_source": {
          "type": [
            "string",
            "null"
          ],
          "description": "Such as `LED` or `Halogen`."
        },
        "keyless_ignition": {
          "type": [
            "string",
            "null"
          ],
          "description": "A key that must be programmed to the vehicle."
        },
        "lane_centering": {
          "type": [
            "string",
            "null"
          ]
        },
        "lane_departure": {
          "type": [
            "string",
            "null"
          ]
        },
        "lane_keep": {
          "type": [
            "string",
            "null"
          ]
        },
        "park_assist": {
          "type": [
            "string",
            "null"
          ]
        },
        "pedestrian_alert_sound": {
          "type": [
            "string",
            "null"
          ],
          "description": "The sound a hybrid or electric vehicle makes for pedestrians."
        },
        "pedestrian_braking": {
          "type": [
            "string",
            "null"
          ]
        },
        "pretensioner": {
          "type": [
            "string",
            "null"
          ]
        },
        "rear_cross_traffic": {
          "type": [
            "string",
            "null"
          ]
        },
        "seat_belts": {
          "type": [
            "string",
            "null"
          ]
        },
        "tpms": {
          "type": [
            "string",
            "null"
          ],
          "description": "How tire pressure is monitored, as NHTSA words it, such as `Direct`."
        },
        "traction_control": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "Selection": {
      "type": "object",
      "description": "The catalog's answer for one decoded VIN.",
      "required": [
        "entry",
        "vehicle_id"
      ],
      "properties": {
        "engine_id": {
          "type": [
            "string",
            "null"
          ],
          "description": "The engine's id form, when the decode settles on one."
        },
        "entry": {
          "$ref": "#/$defs/Entry",
          "description": "The most specific entry the decode reaches."
        },
        "submodel_id": {
          "type": [
            "string",
            "null"
          ],
          "description": "The submodel's id form, when the decode names exactly one."
        },
        "vehicle_id": {
          "type": "string",
          "description": "The id of the year, make and model."
        }
      }
    },
    "VinRecallCount": {
      "type": "object",
      "description": "What a batch decode says of recalls when `include=recalls` is asked:\nhow many campaigns may apply to the model year the VIN decodes to.",
      "required": [
        "may_apply",
        "count",
        "do_not_drive",
        "park_outside",
        "lookup"
      ],
      "properties": {
        "count": {
          "$ref": "#/$defs/RecallCount"
        },
        "do_not_drive": {
          "type": "boolean",
          "description": "Whether any of them carries NHTSA's advisory not to drive."
        },
        "lookup": {
          "$ref": "#/$defs/RecallLookup"
        },
        "may_apply": {
          "type": "boolean",
          "description": "Always `true`. The count is for the year, make and model, not for\nthe VIN: check the VIN at the addresses in `lookup`."
        },
        "park_outside": {
          "type": "boolean",
          "description": "Whether any of them carries NHTSA's advisory to park outside."
        }
      }
    },
    "Warning": {
      "type": "object",
      "required": [
        "code",
        "message"
      ],
      "properties": {
        "code": {
          "type": "string",
          "description": "`invalid_check_digit`, `model_year_unknown`, `no_patterns` or\n`model_unresolved`. More may be added."
        },
        "message": {
          "type": "string"
        },
        "suggestions": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "VINs the caller may have meant."
        }
      }
    }
  }
}