Skip to content

Update Booking

Update a booking's information.

Endpoint

INFO

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

Headers

HeaderValueRequired
Content-Typeapplication/jsonYes
Acceptapplication/jsonYes
AuthorizationBearer {token}Yes

Path Parameters

ParameterTypeDescription
bookingintegerBooking ID

Request Body

ParameterTypeRequiredDescription
end_datestringNoNew end datetime
notesstringNoInternal notes
statusstringNoUpdate status

Example Request

bash
curl -X PUT https://api.daakey.com/api/v1/dashboard/bookings/1 \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer {token}" \
  -d '{
    "end_date": "2024-01-15T20:00:00Z",
    "notes": "Extended by customer request"
  }'

Response

Success (200)

json
{
  "success": true,
  "message": "Booking updated",
  "data": {
    "id": 1,
    "reference": "BK-2024-00001",
    "end_date": "2024-01-15T20:00:00Z",
    "notes": "Extended by customer request",
    "pricing": {
      "hours": 10,
      "subtotal": 150.00,
      "tax": 15.00,
      "total": 365.00
    },
    "updated_at": "2024-01-15T12:00:00Z"
  },
  "request_id": "uuid",
  "timestamp": "2024-01-01T00:00:00.000Z"
}

Notes

  • Extending a booking recalculates pricing
  • Additional charges are applied if extending

Daakey Car Sharing Platform