Fetch a vehicle's location using its ID.
get/v1/vehicle_locations/{id}
Request
- Base URLhttps://api.gomotive.com
- AuthAPI key in header x-api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
idinteger required
Specify the unique identifier of the vehicle.
Query parameters
datestring date required
Specify the date for which you want to check the information of the vehicle. NOTE: The format of the date is YYYY-MM-DD
Headers
X-Time-Zonestring
Specify the timezone for formatting the timestamps.
X-Metric-Unitsboolean
Specify if you want to use the Metric units or the Imperial units. TRUE: Metric units. FALSE: Imperial Units
X-User-Idinteger
Specify the ID of the Fleet Admin or the Fleet Manager who is accessing this endpoint.
Response
200
Example response
{
"vehicles": [
{
"vehicle": {
"id": 3262,
"number": "00030004",
"year": "2017",
"make": "Chevrolet",
"model": "KT-E"
}
}
],
"pagination": {
"per_page": 25,
"page_no": 1,
"total": 2
}
}Changes
No recorded changes to this operation across all 1 revision of this API.