Lodol Docs

Booking.com

API actions for the Booking.com integration.

Booking.com

Search Booking.com inventory, check availability, and manage reservations with an API key.


Cancel reservation

Cancel an existing reservation with an optional reason.

Parameters

ParameterTypeRequiredDescription
reservation_idstringYesReservation confirmation code.
reasonstringNoCancellation reason.

Response

{
  "reservation_id": "res789ghi",
  "status": "cancelled"
}

Check room availability

Check available rooms for a hotel across a date range.

Parameters

ParameterTypeRequiredDescription
hotel_idstringYesHotel identifier.
check_instringYesCheck-in date.
check_outstringYesCheck-out date.

Response

{
  "available_rooms": [],
  "hotel_id": "hotel123abc"
}

Create reservation

Create a reservation for a hotel and guest.

Parameters

ParameterTypeRequiredDescription
hotel_idstringYesHotel identifier.
guest_namestringYesGuest full name.
check_instringYesCheck-in date.
check_outstringYesCheck-out date.
roomsnumberYesNumber of rooms.

Response

{
  "reservation_id": "res101jkl",
  "status": "confirmed"
}

Get reservation

Fetch reservation details by confirmation code.

Parameters

ParameterTypeRequiredDescription
reservation_idstringYesReservation confirmation code.

Response

{
  "reservation_id": "res789ghi",
  "status": "confirmed"
}

Search hotels

Search hotels by city, date range, and guest count.

Parameters

ParameterTypeRequiredDescription
citystringYesDestination city name.
check_instringYesCheck-in date.
check_outstringYesCheck-out date.
guestsnumberYesNumber of guests.

Response

{
  "results": [
    {
      "hotel_id": "hotel123abc",
      "name": "Grand Plaza Hotel",
      "price_per_night": 180
    }
  ]
}

On this page