---
title: "Get DTC history by Vehicle Number"
url: "https://developers.vzconnect.com/apis/vehicle-update-api-v1/versions/05da0a4a-83c3-4ea4-bf95-677b0523cf9a/operations/getDtcHistoryByVehicleNumber"
---

> Full API specification: https://developers.vzconnect.com/apis/vehicle-update-api-v1/versions/05da0a4a-83c3-4ea4-bf95-677b0523cf9a.md

# Get DTC history by Vehicle Number

`GET` `/rad/v1/vehicles/{vehiclenumber}/getdtchistorybyvehiclenumber`

Operation ID: `getDtcHistoryByVehicleNumber`

Return all DTCs that were ever activated or deactivated for the specified vehicle, within the account's data plan. The DTCs array is empty when there is no DTC history. Not all ECM units may be compatible or configured to report DTCs.

## Path parameters

- `vehiclenumber` (string, required) - The Vehicle Number; the unique identifier used to reference the vehicle within the API.

## Responses

- `200` - Successfully retrieved DTC history for the vehicle. The DTCs array is empty when the vehicle has no DTC history.
- `400` - Bad request — the request is not valid, for example the vehicle number is blank.
- `401` - Unauthorized — authentication credentials are missing or invalid.
- `404` - Not found — vehicle number does not exist in this account.
- `500` - Internal server error.

## OpenAPI definition

```yaml
openapi: 3.0.0
info:
  title: Vehicle Update API
  version: "1.0"
servers:
  - url: https://api.us.vzconnect.com
paths:
  /rad/v1/vehicles/{vehiclenumber}/getdtchistorybyvehiclenumber:
    get:
      summary: Get DTC history by Vehicle Number
      description: Return all DTCs that were ever activated or deactivated for the
        specified vehicle, within the account's data plan. The DTCs array is
        empty when there is no DTC history. Not all ECM units may be compatible
        or configured to report DTCs.
      operationId: getDtcHistoryByVehicleNumber
      parameters:
        - name: vehiclenumber
          in: path
          description: The Vehicle Number; the unique identifier used to reference the
            vehicle within the API.
          required: true
          schema:
            type: string
            example: GEM1
      responses:
        "200":
          description: Successfully retrieved DTC history for the vehicle. The DTCs array
            is empty when the vehicle has no DTC history.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/VehicleDTCHistory"
              example:
                VehicleNumber: GEM1
                VehicleName: GEM1 US
                DTCs:
                  - DTC: "OBDII DTC: P1036"
                    IsActive: true
                    LastUpdatedDateTime: 2017-04-17T18:56:30
                  - DTC: "OBDII DTC: P1036"
                    IsActive: false
                    LastUpdatedDateTime: 2017-04-17T18:56:31
        "400":
          description: Bad request — the request is not valid, for example the vehicle
            number is blank.
          content:
            application/json:
              schema:
                type: object
        "401":
          description: Unauthorized — authentication credentials are missing or invalid.
        "404":
          description: Not found — vehicle number does not exist in this account.
          content:
            application/json:
              schema:
                type: object
        "500":
          description: Internal server error.
          content:
            application/json:
              schema:
                type: object
      x-kong-route-defaults:
        response_buffering: false
        strip_path: false
        paths:
          - ~/rad/v1/vehicles/[^/]+/getdtchistorybyvehiclenumber/?$
      tags:
        - Vehicle Update API
components:
  schemas:
    VehicleDTCHistory:
      type: object
      description: DTC history for a vehicle including all historical and active
        diagnostic trouble codes.
      properties:
        VehicleNumber:
          type: string
          description: Unique vehicle identifier within the REVEAL account.
          example: GEM1
        VehicleName:
          type: string
          description: Display name of the vehicle.
          example: GEM1 US
        DTCs:
          type: array
          description: List of DTC history entries for this vehicle.
          items:
            $ref: "#/components/schemas/VehicleDTCHistoryDetails"
    VehicleDTCHistoryDetails:
      type: object
      description: Individual DTC entry with active status and last update timestamp.
      properties:
        DTC:
          type: string
          description: The diagnostic trouble code identifier.
          example: "OBDII DTC: P1036"
        IsActive:
          type: boolean
          description: Whether this DTC is currently active.
          example: true
        LastUpdatedDateTime:
          type: string
          format: date-time
          description: UTC timestamp of when this DTC was last updated.
          example: 2017-04-09T15:54:41
```
