---
title: "Retrieve a specific vehicle by vehicle number."
url: "https://developers.vzconnect.com/apis/vehicle-api-v1/versions/3941fe83-a6d1-4bef-90e3-c94cadaf0d4d/operations/getVehicleByNumber"
---

> Full API specification: https://developers.vzconnect.com/apis/vehicle-api-v1/versions/3941fe83-a6d1-4bef-90e3-c94cadaf0d4d.md

# Retrieve a specific vehicle by vehicle number.

`GET` `/cmd/v1/vehicles/{vehiclenumber}`

Operation ID: `getVehicleByNumber`

Retrieve a single vehicle specified by its Vehicle Number.

## Path parameters

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

## Responses

- `200` - Successfully retrieved the vehicle details.
- `400` - Bad request. No vehicle exists with the specified vehicle number (message: "The Client Vehicle ID specified was not a valid ID.").
- `401` - Unauthorized. Authentication credentials are missing or invalid.
- `500` - Internal server error.

## OpenAPI definition

```yaml
openapi: 3.0.0
info:
  title: Vehicle API
  version: "1.0"
servers:
  - url: https://api.us.vzconnect.com
paths:
  /cmd/v1/vehicles/{vehiclenumber}:
    get:
      summary: Retrieve a specific vehicle by vehicle number.
      description: Retrieve a single vehicle specified by its Vehicle Number.
      operationId: getVehicleByNumber
      tags:
        - Vehicle API
      parameters:
        - name: vehiclenumber
          in: path
          required: true
          description: The Vehicle Number; the unique identifier used to reference the
            vehicle within the API.
          schema:
            type: string
            example: "33901"
      responses:
        "200":
          description: Successfully retrieved the vehicle details.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Vehicle"
              example:
                Name: FD 0339
                VehicleNumber: "33901"
                RegistrationNumber: null
                VIN: null
                Make: FORD
                Year: 2010
                Model: ECONOLINE
                TankCapacity: 113.562353673961
                HighwayMPG: 6.72042
                CityMPG: 11.76073
                VehicleSize: 0
                HasNavigationDevice: true
                FuelType: 1
                HasTachograph: false
                VehicleId: 1
        "400":
          description: 'Bad request. No vehicle exists with the specified vehicle number
            (message: "The Client Vehicle ID specified was not a valid ID.").'
          content:
            application/json: {}
        "401":
          description: Unauthorized. Authentication credentials are missing or invalid.
          content:
            application/json: {}
        "500":
          description: Internal server error.
          content:
            application/json: {}
      x-kong-route-defaults:
        strip_path: false
        paths:
          - ~/cmd/v1/vehicles/[^/]+/?$
components:
  schemas:
    Vehicle:
      type: object
      description: A vehicle record as returned by the GET Vehicle methods.
      properties:
        Name:
          type: string
          nullable: true
          description: The Vehicle Name as recorded within the REVEAL vehicle profile.
          example: FD 0339
        VehicleNumber:
          type: string
          description: The Vehicle Number is the unique identifier used to reference the
            vehicle within the API. It is not mandatory within the REVEAL
            account but is required for the API.
          example: "33901"
        RegistrationNumber:
          type: string
          nullable: true
          description: Registration Number is not required within the REVEAL vehicle
            profile. When provided it must be unique within an account.
          example: null
        VIN:
          type: string
          nullable: true
          description: Vehicle Identification Number, the unique serial code provided by
            the automotive manufacturer for the vehicle.
          example: null
        Make:
          type: string
          nullable: true
          description: The vehicle manufacturer's brand.
          example: FORD
        Year:
          type: integer
          nullable: true
          description: The year the vehicle was manufactured.
          example: 2010
        Model:
          type: string
          nullable: true
          description: The type of vehicle by the manufacturer.
          example: ECONOLINE
        TankCapacity:
          type: number
          format: double
          nullable: true
          description: Tank Capacity provided and referenced in liters. Not required, but
            a key element when using Fuel Card features.
          example: 113.562353673961
        HighwayMPG:
          type: number
          format: double
          nullable: true
          description: Estimated Highway MPG provided by the customer, referenced in
            liters. Not required, but a key element when using Fuel Card
            features.
          example: 6.72042
        CityMPG:
          type: number
          format: double
          nullable: true
          description: Estimated City MPG provided by the customer, referenced in liters.
            Not required, but a key element when using Fuel Card features.
          example: 11.76073
        VehicleSize:
          type: integer
          description: "Vehicle Size classification. 0: Light Duty, 1: Medium Duty, 2:
            Heavy Duty, 3: Super Heavy Duty. Defaults to Light Duty."
          enum:
            - 0
            - 1
            - 2
            - 3
          default: 0
          example: 0
        HasNavigationDevice:
          type: boolean
          description: Indicates whether the vehicle has a Garmin navigation device
            installed.
          example: true
        FuelType:
          type: integer
          description: "The Fuel Type of the vehicle. 0: Not set, 1: Unleaded, 2: Diesel,
            3: Electric."
          enum:
            - 0
            - 1
            - 2
            - 3
          example: 1
        HasTachograph:
          type: boolean
          description: Indicates whether the vehicle has a tachograph device installed.
          example: false
        VehicleId:
          type: integer
          description: An integer primary key uniquely identifying each record in the table.
          example: 1
        FleetItemId:
          type: string
          format: uuid
          description: The unique identifier of the fleet item (vehicle). This is the
            preferred identifier moving forward and will eventually replace
            VehicleId.
          example: 81b66e37-3ceb-46a8-96ca-ce31d8d1e070
```
