Get all vehicle types
GET/v1/vehicle-types
Retrieves a list of all vehicle types with their configuration, icons, and capacity settings
Request
Query Parameters
Possible values: >= 1
Default value: 1
Page number for pagination
Possible values: >= 1
Default value: 10
Number of items per page
Filter by vehicle type name (case-insensitive)
Responses
- 200
List of vehicle types retrieved successfully
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
data object[]required
The data of the paginated response
The ID of the vehicle type
The name of the vehicle type
The icon on map of the vehicle type
The icon on app of the vehicle type
The icon on web of the vehicle type
The passengers of the vehicle type
The luggage of the vehicle type
The description of the vehicle type
The created date of the vehicle type
The latest update date of the vehicle type
The total number of items
The current page
The number of items per page
The total number of pages
{
"data": [
{
"_id": "672d07188234567890123456",
"name": "Vehicle Type 1",
"iconOnMap": "https://example.com/icon.png",
"iconOnApp": "https://example.com/icon.png",
"iconOnWeb": "https://example.com/icon.png",
"passengers": 1,
"luggage": 1,
"description": "Description of the vehicle type",
"createdDate": "2025-01-01T00:00:00.000Z",
"latestUpdate": "2025-01-01T00:00:00.000Z"
}
],
"total": 100,
"page": 1,
"limit": 10,
"totalPages": 10
}