Vehicle type list
This API is used to retrieve a list of all vehicle types in an account.
How to get data
Method
GET
Request address
To get the data, use the address: https://<server_address>/backend/api.php?
Request parameters
-
cmd=vehtypelist — command to get the list of vehicle types
-
node — the number of the node where the command should be executed
Example request
https://<server_address>/backend/api.php?cmd=vehtypelist&node=1
|
Response
{
"code": 0,
"data": [
{ "identifier": 1, "name": "Car" },
{ "identifier": 2, "name": "Truck" },
{ "identifier": 3, "name": "Passenger" },
{ "identifier": 4, "name": "Agrimotor" }
],
"message": "OK"
}
|
In response to the API request, the following is returned:
-
code — request result code (0 = successful)
-
data — array of vehicle types:
-
identifier — unique vehicle type ID
-
name — name of the vehicle type
-
message — text message with the result of the request