{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dvla-gov-uk/json-schema/dvla-gov-uk-kadoe-response-schema.json",
  "title": "KadoeResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dvla-gov-uk-kadoe-openapi.yml#/components/schemas/KadoeResponse",
  "type": "object",
  "properties": {
    "registrationNumber": {
      "$ref": "#/$defs/RegistrationNumber"
    },
    "chassisVin": {
      "$ref": "#/$defs/ChassisVin"
    },
    "make": {
      "type": "string",
      "description": "The make of the vehicle."
    },
    "model": {
      "type": "string",
      "description": "The model of the vehicle."
    },
    "fleetNumber": {
      "type": "string",
      "description": "The assigned fleet number of the vehicle."
    },
    "colour": {
      "type": "string",
      "description": "The vehicle's colour."
    },
    "secondaryColour": {
      "type": "string",
      "description": "Another colour present on the vehicle."
    },
    "keeper": {
      "$ref": "#/$defs/Keeper"
    },
    "message": {
      "type": "string",
      "description": "Information message for stolen, scrapped and exported vehicles."
    },
    "taxStatus": {
      "type": "string",
      "description": "The current tax status of the vehicle.",
      "enum": [
        "Not Taxed for on Road Use",
        "SORN",
        "Untaxed",
        "Taxed"
      ]
    },
    "seatingCapacity": {
      "type": "integer",
      "format": "int32",
      "description": "The seating capacity of the vehicle."
    },
    "bodyType": {
      "type": "string",
      "description": "The body type of the vehicle."
    },
    "taxClass": {
      "type": "string",
      "description": "The tax class of the vehicle."
    }
  },
  "$defs": {
    "Address": {
      "type": "object",
      "properties": {
        "line1": {
          "type": "string"
        },
        "line2": {
          "type": "string"
        },
        "line3": {
          "type": "string"
        },
        "line4": {
          "type": "string"
        },
        "line5": {
          "type": "string"
        },
        "postcode": {
          "type": "string"
        }
      }
    },
    "ChassisVin": {
      "type": "string",
      "description": "Vehicle's chassis identification number."
    },
    "Keeper": {
      "type": "object",
      "properties": {
        "title": {
          "type": "string",
          "description": "Title of the person who is the registered keeper of the vehicle."
        },
        "firstNames": {
          "type": "string",
          "description": "First names of the person who is the registered keeper of the vehicle."
        },
        "lastName": {
          "type": "string",
          "description": "Last name of the person who is the registered keeper of the vehicle."
        },
        "companyName": {
          "type": "string",
          "description": "Name of the company who is the registered keeper of the vehicle"
        },
        "address": {
          "$ref": "#/$defs/Address"
        }
      },
      "additionalProperties": false
    },
    "RegistrationNumber": {
      "type": "string",
      "description": "Vehicle's registration number.",
      "pattern": "^(([A-Za-z]{1,2}[ ]?[0-9]{1,4})|([A-Za-z]{3}[ ]?[0-9]{1,3})|([0-9]{1,3}[ ]?[A-Za-z]{3})|([0-9]{1,4}[ ]?[A-Za-z]{1,2})|([A-Za-z]{3}[ ]?[0-9]{1,3}[ ]?[A-Za-z])|([A-Za-z][ ]?[0-9]{1,3}[ ]?[A-Za-z]{3})|([A-Za-z]{2}[ ]?[0-9]{2}[ ]?[A-Za-z]{3})|([A-Za-z]{3}[ ]?[0-9]{4}))$"
    }
  }
}