POST/v1/hotels/search

Buscar hoteles disponibles

Busca hoteles disponibles por ubicación, fechas, ocupación y filtros comerciales, y aplica las reglas de precio configuradas para la compañía.

Busca hoteles disponibles por ubicación, fechas, ocupación y filtros comerciales, y aplica las reglas de precio configuradas para la compañía.

Endpoint

MétodoRutaAuth
POST/v1/hotels/searchAPI key requerida
Headers obligatorios:
HeaderDescripción
AuthorizationBearer <secret_key>. The secret is shown only once when the credential is created.
X-Travelandz-Id<public_key>:<profile_code>. The profile_code is the dp_-prefixed Developer Profile code shown in your dashboard. This binds the request to a profile and credential.
Content-TypeUse application/json for requests with a body.

Esquema del cuerpo de la petición

PropiedadTipoDetallesRequeridoNotas
languageenum
eneszh
NoDefault en
checkInstring
Format: YYYY-MM-DD
-
checkOutstring
Format: YYYY-MM-DD
-
locationobject-
locationsearchBy
enum
coords
-
locationlatitude
number-
locationlongitude
number-
searchRadiusnumberNoMinimum value: 1
countryCodestring
Format: 2 digits
-
nationalitystring
Format: 2 digits
-
maxHotelsnumberNoMaximum value: 2000
minRatenumberNo-
maxRatenumberNo-
minCategoryenum
12345
No-
maxCategoryenum
12345
No-
refundableenum
allrefundablenon-refundable
-
roomsarray-
rooms[]adults
numberMinimum value: 1, Maximum value: 4
rooms[]children
numberNoMinimum value: 0, Maximum value: 4
rooms[]childrenAges
array-
rooms[]childrenAges[]
number[]-
currencyenum
EURUSDCNY
NoDefault EUR
retrieveBookingLinkbooleanNoDefault false

Respuesta exitosa

Devuelve hotel results, availability, min rates and optional booking links.

Esquema del cuerpo de la respuesta

PropiedadTipoDetallesRequeridoNotas
hotelsarray-
hotels[]gdsprovider
number-
hotels[]offerLink
stringNo-
hotels[]hotelId
string-
hotels[]code
string-
hotels[]name
string-
hotels[]description
object-
hotels[]descriptionlang
enum
eneszh
-
hotels[]descriptiondescription
string-
hotels[]starRating
number-
hotels[]reviewCount
numberNo-
hotels[]accommodationType
string-
hotels[]chain
stringNulable-
hotels[]address
object-
hotels[]addressstreet
stringNo-
hotels[]addresscountryCode
stringNo-
hotels[]addresscountry
stringNo-
hotels[]addressdestination
stringNo-
hotels[]addresszone
stringNo-
hotels[]location
object-
hotels[]locationtype
string-
hotels[]locationcoordinates
array-
hotels[]locationcoordinates[]
number[]
Format: [longitude, latitude]
-
hotels[]latitude
number-
hotels[]longitude
number-
hotels[]roomsNames
array-
hotels[]roomsNames[]
string[]-
hotels[]boardTypes
array-
hotels[]boardTypes[]
string[]-
hotels[]hasRefundableRooms
boolean-
hotels[]images
array-
hotels[]images[]
string[]-
hotels[]amenities
array-
hotels[]amenities[]
string[]-
hotels[]minPrice
number-
hotels[]roomCount
numberNo-