Booking History
Booking history provides a detailed log of all changes and events related to a booking, including confirmations, modifications, and cancellations. This is useful for tracking the lifecycle of a booking and understanding any updates made by users or the system.
Get Booking History
Retrieve the complete history of changes and events for a booking.
Endpoint: GET /api/v1/bookings/{bookingId}/histories
Response:
json
[
{
"id": "hist-123",
"bookingId": "booking-123",
"userId": "user-123",
"firstName": "Alice",
"lastName": "Johnson",
"label": "Booking confirmed",
"createdAt": "2024-05-01T10:00:00Z"
},
{
"id": "hist-124",
"bookingId": "booking-123",
"userId": "user-456",
"firstName": "Hotel",
"lastName": "Manager",
"label": "Room upgraded to suite",
"createdAt": "2024-06-14T16:00:00Z"
}
]