Fleet API

Operations for searching fleet items, and for retrieving and updating a single vehicle, powered asset or non-powered asset.

Search fleet items

Queries and returns a paginated list of fleet items matching specified body conditions.

Query Controls:
Supports server-side filtering (e.g., fleetItemType EQUALS, fleetItemId IN, externalIds CONTAINS_ANY) and an optional free-text search parameter q. All conditions are AND-combined. conditions and fields are optional; omit conditions (or send an empty array) to return all fleet items.

Free-text search (q):
Matches fleet items whose name, registrationNumber, vin or notes contains the value. q must be 3-255 characters and may contain only letters, digits, spaces, hyphens and dots; any other value returns 400.

Response Field Projection (fields):
The fields array controls which properties appear in each result item — similar to a SQL SELECT clause. Only the specified fields are returned, reducing payload size. If omitted or empty, all fields are returned. Available fields: fleetItemId, name, fleetItemType, externalIds, notes, vin, manufacturer, manufacturerModel, manufactureYear, esn, fuelType, size, registrationNumber, metrics.fuelCapacity, metrics.highwayEfficiency, metrics.cityEfficiency. Any other name (for example fleetItemState, cost, eTag, registrationType, metrics or links) is rejected with 400 Unknown field; metrics are requested individually as metrics.<name>.

Fleet item state:
Search returns active and inactive fleet items; deleted fleet items are never returned. fleetItemState cannot be used as a condition or requested in fields. Use GET /v1/fleet-items/{fleetItemId} to read a fleet item’s state.

Field/Operator Compatibility:

  • fleetItemId: IN (1…N values)
  • fleetItemType: EQUALS (exactly 1 value), IN (1…N values)
  • externalIds: CONTAINS_ANY (1…100 values)

Operator Semantics for externalIds:

  • CONTAINS_ANY: Matches fleet items whose external ID equals any of the supplied values (whole-value match, not a partial or prefix match). Supports 1 to 100 lookup values in a single query; more than 100 returns 400.

About externalIds:
An array containing a single external identifier used to map this Reveal entity to your consumer systems. This field combines the older vehicleNumber and assetNumber fields into a single unique identifier, offering a broader capability that handles both vehicles and assets within a unified property.

External ID matching is case-insensitive (matches the underlying column collation).

Performance:
Supports field projection to return only requested properties.

Pagination & Sorting:
Implements forward-only cursor pagination via pageToken. Results are strictly sorted by fleetItemId in descending order. When more results exist, the response includes a pageToken; pass it back as pagination.pageToken in the next request body. pageToken is null on the last page. The response links array is currently always empty.

post
https://api.us.vzconnect.com/fleetapi/v1/fleet-items/search

Query Parameters

qstring

Optional free-text search. Matches name, registrationNumber, vin or notes containing the value. 3-255 characters: letters, digits, spaces, hyphens and dots only.

Body

The search request containing conditions, fields, and pagination settings.

FleetItemsSearchRequest

Request body for the POST /v1/fleet-items/search endpoint. Defines filtering conditions, field projection, and pagination settings for querying fleet items.

* Additional properties are NOT allowed.
conditionsarray[object]

A single filter condition within a search request. Combines a field, comparison operator, and one or more values.

<= 10 items

Example:{"field":"externalIds","operator":"CONTAINS_ANY","values":["telematics:VH-12345","fleet-mgmt:A-999"]}

* Additional properties are NOT allowed.
Show Child Parameters
fieldsarray[string]

A property name to include in each result item.

Allowed values:fleetItemIdnamefleetItemTypeexternalIdsnotesvinmanufacturermanufacturerModelmanufactureYearesnfuelTypesizeregistrationNumbermetrics.fuelCapacitymetrics.highwayEfficiencymetrics.cityEfficiency

<= 100 items

Example:fleetItemId

paginationobject

Cursor-based pagination settings for search requests.

Example:{"limit":10,"pageToken":null}

* Additional properties are NOT allowed.
Show Child Parameters

Response

application/json

Returns the search results with matching fleet items.

FleetItemsSearchResult

Paginated search results containing fleet items matching the specified conditions.

* Additional properties are NOT allowed.
itemsarray | null[object]

A fleet item returned by the POST /v1/fleet-items/search endpoint. When the request’s fields array is set, only the requested properties are present; when it is omitted or empty, every property is returned.

* Additional properties are NOT allowed.
Show Child Parameters
pageTokenstring | null

Token for retrieving the next page of results. Pass it as pagination.pageToken in the next request body. null when there are no more pages.

Example:01945a3b-7c8d-7e9f-a0b1-c2d3e4f5a6b7

linksarray | null[object]

Reserved for pagination links. Currently always an empty array; use pageToken to request the next page.

* Additional properties are NOT allowed.
Show Child Parameters
 
application/json

Get a fleet item

Returns the complete details for a single fleet item (vehicle, powered asset, or non-powered asset).

Identifier Flexibility:
The fleetItemId path parameter accepts either a fleet item ID or an external identifier. Any value that is not a fleet item ID is treated as an external identifier and matched as a whole value, case-insensitive, against the fleet item’s stored external ID. External IDs set through this API use the format consumer-scope:consumer-id; older values imported from VehicleNumber or AssetNumber may have no scope and are matched as stored.

Metrics:
metrics contains fuelCapacity, cityEfficiency and highwayEfficiency when they are set (battery capacity and kWh-based efficiency for electric vehicles).

Examples:

  • GET /v1/fleet-items/01945a3b-7c8d-7e9f-a0b1-c2d3e4f5a6b7 (fleet item ID)
  • GET /v1/fleet-items/telematics:VH-12345 (external identifier)
get
https://api.us.vzconnect.com/fleetapi/v1/fleet-items/{fleetItemId}

Path Parameters

fleetItemIdstringrequired

Fleet item identifier — either a fleet item ID or an external identifier, matched as stored (usually consumer-scope:consumer-id; legacy VehicleNumber or AssetNumber values may have no scope)

Headers

vzc-ctx-account-idinteger | null(int32)

>= 1<= 2147483647

Example:1133549

vzc-ctx-user-idinteger | null(int32)

>= 1<= 2147483647

Example:5372525

Response

application/json

Returns the fleet item details.

FleetDetailedOutput

Complete representation of a fleet item (vehicle, powered asset, or non-powered asset) returned by the GET /v1/fleet-items/{fleetItemId} endpoint.

* Additional properties are NOT allowed.
fleetItemIdstring | null

Unique public identifier for the fleet item.

namestring | null

Display name or label assigned to the fleet item (e.g. vehicle call-sign or asset tag).

fleetItemStatestring | null

Current lifecycle state of the fleet item (ACTIVE or INACTIVE).

Allowed values:ACTIVEINACTIVE

fleetItemTypestring | null

Type of fleet item: VEHICLE, POWERED_ASSET, or NON_POWERED_ASSET.

Allowed values:VEHICLENON_POWERED_ASSETPOWERED_ASSET

costnumber | null(double)

Operational cost associated with the fleet item, in the account’s configured currency. Always null for non-powered assets.

eTagstring | null

Entity tag for optimistic concurrency control. Include this value in the If-Match header when performing PATCH updates.

externalIdsarray | null[string]

An external identifier used to map this Reveal entity to your consumer systems. This field combines the older vehicleNumber and assetNumber fields into a single unique identifier, offering a broader capability that handles both vehicles and assets within a unified property. Values set through this API use the format consumer-scope:consumer-id (e.g. telematics:VH-12345); older values imported from vehicleNumber or assetNumber may have no scope.

Match pattern:^[^\n]{1,120}$

<= 1 items

Example:telematics:VH-12345

notesstring | null

Free-text notes or comments attached to the fleet item by an administrator.

vinstring | null

Vehicle Identification Number (VIN) — a unique 17-character code assigned by the manufacturer. Applicable to vehicles only.

manufacturerstring | null

Name of the vehicle or asset manufacturer (e.g. “Ford”, “Caterpillar”).

manufacturerModelstring | null

Manufacturer’s model designation (e.g. “Transit”, “320F”).

manufactureYearinteger | null(int32)

Year the vehicle or asset was manufactured.

esnstring | null

Electronic Serial Number identifying the telematics device installed in the fleet item.

fuelTypestring | null

Fuel type used by the vehicle: NOT_SET, UNLEADED, DIESEL, or ELECTRIC.

Allowed values:NOT_SETUNLEADEDDIESELELECTRIC

sizestring | null

Weight classification of the vehicle: LIGHT, MEDIUM, HEAVY, or SUPER_HEAVY.

Allowed values:LIGHTMEDIUMHEAVYSUPER_HEAVY

registrationNumberstring | null

Government-issued registration or license plate number.

registrationTypeinteger | null(int32)

Numeric code representing the type of vehicle registration (jurisdiction-specific).

metricsarray | null[object]read-only

An operational metric associated with a fleet item (fuel capacity or efficiency).

* Additional properties are NOT allowed.
Show Child Parameters
linksarray | null[object]read-only

HATEOAS navigation links for related resources and actions.

* Additional properties are NOT allowed.
Show Child Parameters
 
application/json

Update a fleet item

Applies atomic, partial updates to a specific fleet item using the JSON Patch specification (RFC 6902).

Identifiers:
Accepts either a fleet item ID or an external identifier. Any value that is not a fleet item ID is treated as an external identifier and matched as stored (usually consumer-scope:consumer-id; legacy values may have no scope).

Idempotency-Key:
Required. A unique client-generated key that ensures duplicate requests produce the same result. Include this header to safely retry requests without risking duplicate operations. Requests without it return 400.

If-Match:
Required containing the current ETag to enforce optimistic concurrency control.

Supported Patch Paths:
Only modifications to the following paths are permitted. Paths are case-sensitive and must match exactly as listed (e.g. /fuelType, not /fueltype); any other path returns 422.

  • Core Data: /name, /notes, /fuelType, /size
  • External ID: /externalIds/- (add, only when no external ID is set) or /externalIds/0 (replace), value format consumer-scope:consumer-id, single value. A fleet item has at most one external ID, so the index is not used; if several external ID operations are sent, only the last one is applied. The whole-array path /externalIds is not supported.
  • Group Assignment: /primaryGroup — object: { "externalIds": ["external group ID"] }, single value
  • Vehicle/Asset Data: /vin, /manufacturer, /manufacturerModel, /manufactureYear
  • Registration Data: /registrationNumber, /registrationType

Operational Data (vehicles and powered assets only; non-powered assets return 400):

  • /engineHours: The value must be provided in minutes. Requires an accompanying /asOf operation.
  • /odometerCurrentValue: Requires an accompanying /asOf operation.
  • /asOf: The date and time the reading was taken, sent with add or replace. Must be within the last 30 days and not in the future, otherwise 400.

Supported Operations:

  • replace: Update the value at the specified path (all supported paths).
  • add: Set a value at the specified path (all supported paths). For /externalIds use /externalIds/-.
  • remove: Not supported. Returns 422 on any path.

Examples:

  • PATCH /v1/fleet-items/01945a3b-7c8d-7e9f-a0b1-c2d3e4f5a6b7 (fleet item ID)
  • PATCH /v1/fleet-items/telematics:VH-12345 (external identifier)
patch
https://api.us.vzconnect.com/fleetapi/v1/fleet-items/{fleetItemId}

Path Parameters

fleetItemIdstringrequired

Fleet item identifier — either a fleet item ID or an external identifier, matched as stored (usually consumer-scope:consumer-id; legacy VehicleNumber or AssetNumber values may have no scope)

Headers

Idempotency-Keystringrequired

A unique key to ensure the request is processed at most once.

If-Matchstring

The ETag value from a previous GET, used for optimistic concurrency control.

Body

The list of JSON Patch operations to apply.

JsonPatchOperations

Represents a single JSON Patch operation per RFC 6902.

* Additional properties are NOT allowed.
opstring | null

The operation type. Supported: replace, add. remove is not supported and returns 422. RFC 6902 uses op as the JSON field name.

Example:replace

pathstring | null

The target path for the operation (e.g. /name, /vin).

Example:/name

value

The value for the operation. Required for replace, add.

Example:Fleet Van 042-B

Response

application/json

The fleet item was successfully updated.

 
application/json

PostFleetItemResponse

object
* Additional properties are NOT allowed.
fleetIdinteger(int32)
labelstring
serialNumberinteger(int64)
typestring
driverNamestring
primaryGroupDescriptionstring
vehicleTrackingIdinteger(int64)
fleetClientIdstring
registrationNumberstring
boxIdinteger(int32)
boxNamestring
fleetIdentificationNumberstring
fleetItemStateinteger(int32)

Allowed values:12

fuelTypeinteger(int32)

Allowed values:123

makestring
modelstring
yearinteger(int32)
vehicleSizeinteger(int32)

Allowed values:123

Example