Vehicle Details
Retrieve detailed information about a specific vehicle.
Endpoint
INFO
GET /api/v1/dashboard/vehicles/{vehicle}
Headers
| Header | Value | Required |
|---|---|---|
Accept | application/json | Yes |
Authorization | Bearer {token} | Yes |
Path Parameters
| Parameter | Type | Description |
|---|---|---|
vehicle | integer | Vehicle ID |
Example Request
bash
curl -X GET https://api.daakey.com/api/v1/dashboard/vehicles/1 \
-H "Accept: application/json" \
-H "Authorization: Bearer {token}"Response
Success (200)
json
{
"success": true,
"message": "Vehicle retrieved",
"data": {
"id": 1,
"plate_number": "ABC-123",
"vin": "1HGBH41JXMN109186",
"brand": "Toyota",
"model": "Corolla",
"year": 2023,
"color": "White",
"category": "sedan",
"seats": 5,
"fuel_type": "petrol",
"transmission": "automatic",
"agency": {
"id": 1,
"name": "Downtown Agency"
},
"station": {
"id": 1,
"name": "Downtown Station"
},
"status": "available",
"images": [
"https://api.daakey.com/storage/vehicles/1/front.jpg",
"https://api.daakey.com/storage/vehicles/1/side.jpg"
],
"features": ["AC", "Bluetooth", "GPS", "Backup Camera"],
"pricing": {
"hourly_rate": 15.00,
"daily_rate": 80.00,
"currency": "USD"
},
"telemetry": {
"fuel_level": 85,
"mileage": 15420,
"battery_voltage": 12.6,
"is_locked": true,
"is_engine_running": false,
"location": {
"latitude": 40.7128,
"longitude": -74.0060
},
"last_update": "2024-01-15T10:00:00Z"
},
"invers_device_id": "DEV-12345",
"stats": {
"total_bookings": 45,
"total_revenue": 3600.00,
"average_rating": 4.8,
"utilization_rate": 75.5
},
"active_damages": 0,
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-15T00:00:00Z"
},
"request_id": "uuid",
"timestamp": "2024-01-01T00:00:00.000Z"
}