Vehicles/get_unit_general_info
get_unit_general_infotoken required
Returns one row of general info for a single vehicle/unit — identity, client & group, manufacturer/model, latest state, and service/config fields.
POST
/api— body field action.name = "get_unit_general_info"Parameters
| Name | Type | Required | Description |
|---|---|---|---|
vehicle_id | number | optional | Vehicle id. The resolver tries vehicle_id → inner_id → license_nmbr → vin in that order; supply at least one of the four.e.g. 591723 |
inner_id | string | optional | Unit inner id (alternative identifier).e.g. 0000000905516028 |
license_nmbr | string | optional | License plate / number.e.g. 17108 |
vin | string | optional | Vehicle VIN.e.g. 3HBBZMMN9VL211016 |
Notes
Supply at least one identifier (action_value '1' if none provided). action_value '2' = user not allowed / no such vehicle; '3' = more than one vehicle matched (also pass vehicle_id or inner_id to disambiguate); '999' = session/internal. `fuel_used` is the device's cumulative fuel counter, read from the unit header. Still empty on the new side: `configuration_status` and `configuration_description` — these come from the firmware/config process tables and their status reference data, which are not yet loaded into the new platform. `last_communication_time` / `last_location_time` can lag while telemetry catches up.
Request
curl
curl -X POST 'https://private.stage.questar.io/v2/private-questar-units/api' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer YOUR_TOKEN' \
--data '{"action":{"name":"get_unit_general_info","parameters":[{"vehicle_id":591723,"inner_id":"0000000905516028","license_nmbr":"17108","vin":"3HBBZMMN9VL211016"}]}}'Body
{
"action": {
"name": "get_unit_general_info",
"parameters": [
{
"vehicle_id": 591723,
"inner_id": "0000000905516028",
"license_nmbr": "17108",
"vin": "3HBBZMMN9VL211016"
}
]
}
}Response
Successful responses always wrap the action's payload in response.properties. The action_value field reports the handler outcome: "0" for success, "1" for invalid params, "2" for not allowed, "3" for limit-exceeded /pagination-session-expired, "999" for general error.
200 OK
{
"response": {
"properties": {
"action_name": "get_unit_general_info",
"action_value": "0",
"description": "success",
"data": [
{
"inner_id": "0000000905516028",
"vehicle_id": "591723",
"license_nmbr": "17108",
"vin": "3HBBZMMN9VL211016",
"ignition": "1",
"Vcl_manufacturer": "International",
"Vcl_model": "Interbus-B6.7 200-EPA24-M-CNT",
"vcl_client_id": "14953",
"vcl_client_description": "LIPU L CARDENAS",
"vcl_client_group_id": "39201",
"vcl_client_group_description": "FERTINAL (DINAMICA DEL BALSAS)",
"firmware_version": "",
"last_communication_time": "2025-09-10T12:00:00",
"last_location_time": "2025-09-10T11:58:00",
"driver_code": "",
"mileage": "13210.05",
"fuel_used": "",
"speed": "0",
"engine_hours": "1234.5",
"configuration_status": "",
"configuration_description": "",
"vcl_manufacturer": "Volvo",
"vcl_model": "FH16"
}
]
}
}
}