queryType: getVehicleClasses
The getVehicleClasses queryType is passed to the API to get the vehicle class list used in the application.
Parameters
These parameters should be passed to the functionParameters object regardless of which method you choose from here.
| Parameter | Description | Type | Defined Value Set | Value Required |
|---|---|---|---|---|
| queryType | Must equal "getVehicleClasses". | STRING | "getVehicleClasses" | Y |
| vehicleClassSchemeId | Determines which vehicle classification scheme you will receive data for. See the Vehicle class schemas for a list of options. The default value is 2. | INTEGER | [1,4] | N |
Responses
| Code | Type | Description |
|---|---|---|
| 200 | JSON | The requested data. |
| 401 | JSON | Occurs for various unauthorized tasks, such as not providing credentials in your parameters. |
| 500 | JSON | Occurs if an internal server error occurs. Contact altitudesupport@geotab.com if this occurs. |
Response Schema
| Attribute | Description | Data Type | Defined Value Set |
|---|---|---|---|
| CategoryDescription | Schema description of selected SchemeId. | STRING | See Vehicle class schemas. |
| CategoryIndex | Number associated with SchemeId. | INTEGER | See Vehicle class schemas. |
| MaxWeightKilograms | Maximum weight for the vehicle class (measured in kilograms). | INTEGER | - |
| MaxWeightPounds | Maximum weight for the vehicle class (measured in pounds). | INTEGER | - |
| MinWeightKilograms | Minimum weight for the vehicle class (measured in kilograms). | INTEGER | - |
| MinWeightPounds | Minimum weight for the vehicle class (measured in pounds). | INTEGER | - |
| SchemeId | SchemeId determines for which vehicle classification scheme you will receive data. | INTEGER | See Vehicle class schemas. |
| VehicleClass | Vehicle class name. | STRING | See Vehicle class schemas. |
| VehicleClassIndex | Number representing vehicle class. | INTEGER |
|
| VehicleType | Types of vehicles in that class. | STRING |
|
| WeightClasses | Standard weight class. | ARRAY | See Weight class. |
| WeightClassGrouping | Name of Vehicle Class Schema. | STRING | See Vehicle class schemas. |
Sample parameters
{
"queryType": "getVehicleClasses",
"vehicleClassSchemeId": 2
}