Damage Details
Retrieve detailed information about a specific damage report.
Endpoint
INFO
GET /api/v1/dashboard/damages/{damage}
Headers
| Header | Value | Required |
|---|---|---|
Accept | application/json | Yes |
Authorization | Bearer {token} | Yes |
Path Parameters
| Parameter | Type | Description |
|---|---|---|
damage | integer | Damage report ID |
Example Request
bash
curl -X GET https://api.daakey.com/api/v1/dashboard/damages/1 \
-H "Accept: application/json" \
-H "Authorization: Bearer {token}"Response
Success (200)
json
{
"success": true,
"message": "Damage retrieved",
"data": {
"id": 1,
"vehicle": {
"id": 1,
"plate_number": "ABC-123",
"brand": "Toyota",
"model": "Corolla",
"year": 2023
},
"booking": {
"id": 50,
"reference": "BK-2024-00050",
"client": {
"id": 10,
"name": "John Doe",
"email": "john@example.com"
},
"start_date": "2024-01-15T10:00:00Z",
"end_date": "2024-01-15T18:00:00Z"
},
"reported_by": {
"id": 10,
"name": "John Doe",
"type": "client"
},
"type": "scratch",
"location": "front_bumper",
"severity": "minor",
"description": "Small scratch on front bumper, approximately 5cm long",
"status": "reported",
"images": [
{
"id": 1,
"url": "https://api.daakey.com/storage/damages/1/image1.jpg",
"uploaded_at": "2024-01-15T10:00:00Z"
},
{
"id": 2,
"url": "https://api.daakey.com/storage/damages/1/image2.jpg",
"uploaded_at": "2024-01-15T10:01:00Z"
}
],
"repair": {
"estimated_cost": null,
"actual_cost": null,
"notes": null,
"resolved_at": null,
"resolved_by": null
},
"history": [
{
"action": "created",
"user": "John Doe",
"timestamp": "2024-01-15T10:00:00Z"
}
],
"created_at": "2024-01-15T10:00:00Z",
"updated_at": "2024-01-15T10:00:00Z"
},
"request_id": "uuid",
"timestamp": "2024-01-01T00:00:00.000Z"
}