Skip to content

Booking Details

Retrieve detailed information about a specific booking.

Endpoint

INFO

GET /api/v1/dashboard/bookings/{booking}

Headers

HeaderValueRequired
Acceptapplication/jsonYes
AuthorizationBearer {token}Yes

Path Parameters

ParameterTypeDescription
bookingintegerBooking ID

Example Request

bash
curl -X GET https://api.daakey.com/api/v1/dashboard/bookings/1 \
  -H "Accept: application/json" \
  -H "Authorization: Bearer {token}"

Response

Success (200)

json
{
  "success": true,
  "message": "Booking retrieved",
  "data": {
    "id": 1,
    "reference": "BK-2024-00001",
    "status": "active",
    "client": {
      "id": 1,
      "name": "John Doe",
      "email": "john@example.com",
      "phone": "+1234567890"
    },
    "vehicle": {
      "id": 1,
      "plate_number": "ABC-123",
      "brand": "Toyota",
      "model": "Corolla",
      "year": 2023
    },
    "station": {
      "id": 1,
      "name": "Downtown Station"
    },
    "dates": {
      "start": "2024-01-15T10:00:00Z",
      "end": "2024-01-15T18:00:00Z",
      "actual_start": "2024-01-15T10:05:00Z",
      "actual_end": null
    },
    "pricing": {
      "hourly_rate": 15.00,
      "hours": 8,
      "subtotal": 120.00,
      "tax": 12.00,
      "deposit": 200.00,
      "total": 332.00,
      "currency": "USD"
    },
    "payment": {
      "status": "paid",
      "method": "Visa •••• 4242",
      "transactions": [
        { "type": "deposit", "amount": 200.00, "status": "completed" },
        { "type": "charge", "amount": 132.00, "status": "completed" }
      ]
    },
    "vehicle_events": [
      { "action": "unlocked", "timestamp": "2024-01-15T10:05:00Z" },
      { "action": "driving_enabled", "timestamp": "2024-01-15T10:05:00Z" }
    ],
    "damages": [],
    "notes": null,
    "created_at": "2024-01-10T00:00:00Z",
    "updated_at": "2024-01-15T10:05:00Z"
  },
  "request_id": "uuid",
  "timestamp": "2024-01-01T00:00:00.000Z"
}

Daakey Car Sharing Platform