v1
latestOpenAPI 3.0.02026-07-17337.2 KBBook a room
Books a room in a specified hotel.
post/book
Request body
Example request
{
"hotel_id": 1,
"guest_name": "John Doe",
"check_in_date": "2025-10-01",
"check_out_date": "2025-10-05",
"num_rooms": 1
}Response
Booking successful.
Example response
{
"data": {
"booking_id": "HB-1"
},
"message": "Booking successful!"
}