Skip to main content

List all vehicles.

GET 

/api/vehicles

Retrieve the list of vehicles for users created by a partner.

Request

Query Parameters

    page int32

    Default value: 0

    Page number

    Example: 0
    size int32

    Default value: 10

    Number of items per page

    Example: 10
    sortBy string

    Possible values: [license, vin, state, dateAdded, active]

    Default value: dateAdded

    Sort by field

    Example: dateAdded
    sortDirection string

    Possible values: [asc, desc]

    Default value: desc

    Sort by order

    Example: desc
    searchBy string

    Possible values: [license, vin, state, userFirstName, userLastName, userEmail, userPhone]

    Search by field

    Example: vin
    searchValue string

    Search by value

    Example: Tom
    active boolean

    Filter vehicles by active flag

    Example: true
    additionStartDate string

    Filter vehicles whose addition date is greater or than equal to the date passed in. (The date should be in the ISO8601 UTC format YYY-MM-DDThh:mm:ss.SSSZ)

    Example: 2024-01-01T00:00:00.000Z
    additionEndDate string

    Filter vehicles whose addition is less or than equal to the date passed in. (The date should be in the ISO8601 UTC format YYY-MM-DDThh:mm:ss.SSSZ)

    Example: 2024-01-01T00:00:00.000Z

Header Parameters

    partnerId stringrequired

    Partner Id

    clientId stringrequired

    Client Id

    clientSecret stringrequired

    Client Secret

Responses

List of vehicles matching the query.

Schema

    totalItems int64

    Total number of vehicles

    currentPage int32

    Current page number

    totalPages int64

    Current page size

    itemsOnPage int32

    Number of vehicles on current page

    vehicles

    object[]

    List of vehicles

  • Array [

  • id string

    Id of the vehicle

    license string

    License plate number

    photoUrl string

    Photo of Vehicle

    make string

    Make of the vehicle

    model string

    Model of the vehicle

    vin string

    VIN of the vehicle.

    state string

    2 Letter State Code (eg. AL, CA, CO etc.)

    year string

    Year vehicle was built.

    dateAdded string

    Time at which vehicle was added to the system

    updated string

    Last updated timestamp

    owner

    object

    Check-in owner

    id string

    Id of the user

    firstName string

    User's first name

    lastName string

    User's last name

    active boolean
  • ]

Loading...