API de presupuestos de alojamiento
Guía y ejemplos para acceder a la API de presupuestos de alojamiento
La API de presupuestos de alojamiento devolverá la información de precio y disponibilidad para los ID de alojamiento de Expedia seleccionados.
Punto de conexión
Método | Punto de conexión |
---|---|
GET | https://apim.expedia.com/lodging/quotes |
Encabezados obligatorios
Clave: | Clave de API de Expedia |
Autorización: | Cadena de autorización de API de Expedia |
Aceptar: | application/vnd.exp-lodging.v3+json |
Partner-Transaction-Id: | [Cadena de TransactionID de colaborador] |
Ejemplo de solicitud de la API de presupuestos
Solicitud
https://apim.expedia.com/lodging/quotes?links=WS,WD&propertyIds=87704892,46330564,31187403,76252345&checkIn=2024-11-29&checkOut=2024-12-04
Respuesta
{
"Count": 4,
"TotalPropertyCount": 4,
"TransactionId": "0e1d7193-2289-481c-bdf9-b7ac0b0b3bfe",
"StayDates": {
"CheckInDate": "2024-11-29",
"CheckOutDate": "2024-12-04"
},
"LengthOfStay": 5,
"Occupants": [
{
"Adults": 2
}
],
"Properties": [
{
"Id": "87704892",
"Status": "AVAILABLE",
"RoomTypes": [
{
"RatePlans": [
{
"CancellationPolicy": {
"Refundable": true,
"FreeCancellation": true,
"FreeCancellationEndDateTime": "2024-11-15T23:59:00-08:00",
"CancellationPenaltyRules": [
{
"PenaltyPercentOfStay": "50.00",
"PenaltyStartDateTime": "2024-11-15T23:59:00-08:00",
"PenaltyEndDateTime": "2024-11-22T23:59:00-08:00"
},
{
"PenaltyPercentOfStay": "100",
"PenaltyStartDateTime": "2024-11-22T23:59:00-08:00",
"PenaltyEndDateTime": "2024-11-29T00:00:00-08:00"
}
]
}
}
],
"Price": {
"BaseRate": {
"Value": "790.00",
"Currency": "USD"
},
"TaxesAndFees": {
"Value": "348.48",
"Currency": "USD"
},
"TotalPrice": {
"Value": "1138.48",
"Currency": "USD"
},
"AvgNightlyRate": {
"Value": "158.00",
"Currency": "USD"
},
"AvgNightlyRateWithFees": {
"Value": "198.80",
"Currency": "USD"
},
"TotalPriceWithPropertyFees": {
"Value": "1138.48",
"Currency": "USD"
}
},
"Links": {
"WebSearchResult": {
"Method": "GET",
"Href": "https://www.vrbo.com/search?selected=87704892&startDate=2024-11-29&endDate=2024-12-04&adults=2&tpid=9001&eapid=1&mpa=790.00&mpb=348.48&mpd=USD"
},
"WebDetails": {
"Method": "GET",
"Href": "https://www.vrbo.com/3032772?adults=2&startDate=2024-11-29&endDate=2024-12-04"
}
}
}
]
},
{
"Id": "46330564",
"Status": "AVAILABLE",
"RoomTypes": [
{
"RatePlans": [
{
"CancellationPolicy": {
"Refundable": true,
"FreeCancellation": true,
"FreeCancellationEndDateTime": "2024-11-15T23:59:00-08:00",
"CancellationPenaltyRules": [
{
"PenaltyPercentOfStay": "50.00",
"PenaltyStartDateTime": "2024-11-15T23:59:00-08:00",
"PenaltyEndDateTime": "2024-11-22T23:59:00-08:00"
},
{
"PenaltyPercentOfStay": "100",
"PenaltyStartDateTime": "2024-11-22T23:59:00-08:00",
"PenaltyEndDateTime": "2024-11-29T00:00:00-08:00"
}
]
}
}
],
"Price": {
"BaseRate": {
"Value": "525.00",
"Currency": "USD"
},
"TaxesAndFees": {
"Value": "197.97",
"Currency": "USD"
},
"TotalPrice": {
"Value": "722.97",
"Currency": "USD"
},
"AvgNightlyRate": {
"Value": "105.00",
"Currency": "USD"
},
"AvgNightlyRateWithFees": {
"Value": "130.20",
"Currency": "USD"
},
"TotalPriceWithPropertyFees": {
"Value": "722.97",
"Currency": "USD"
}
},
"Links": {
"WebSearchResult": {
"Method": "GET",
"Href": "https://www.vrbo.com/search?selected=46330564&startDate=2024-11-29&endDate=2024-12-04&adults=2&tpid=9001&eapid=1&mpa=525.00&mpb=197.97&mpd=USD"
},
"WebDetails": {
"Method": "GET",
"Href": "https://www.vrbo.com/1896742?adults=2&startDate=2024-11-29&endDate=2024-12-04"
}
}
}
]
},
{
"Id": "31187403",
"Status": "AVAILABLE",
"RoomTypes": [
{
"RatePlans": [
{
"CancellationPolicy": {
"Refundable": true,
"FreeCancellation": true,
"FreeCancellationEndDateTime": "2024-10-30T23:59:00-07:00",
"CancellationPenaltyRules": [
{
"PenaltyPercentOfStay": "50.00",
"PenaltyStartDateTime": "2024-10-30T23:59:00-07:00",
"PenaltyEndDateTime": "2024-11-15T23:59:00-08:00"
},
{
"PenaltyPercentOfStay": "100",
"PenaltyStartDateTime": "2024-11-15T23:59:00-08:00",
"PenaltyEndDateTime": "2024-11-29T00:00:00-08:00"
}
]
}
}
],
"Price": {
"BaseRate": {
"Value": "825.00",
"Currency": "USD"
},
"TaxesAndFees": {
"Value": "337.65",
"Currency": "USD"
},
"TotalPrice": {
"Value": "1162.65",
"Currency": "USD"
},
"AvgNightlyRate": {
"Value": "165.00",
"Currency": "USD"
},
"AvgNightlyRateWithFees": {
"Value": "203.00",
"Currency": "USD"
},
"TotalPriceWithPropertyFees": {
"Value": "1162.65",
"Currency": "USD"
}
},
"Links": {
"WebSearchResult": {
"Method": "GET",
"Href": "https://www.vrbo.com/search?selected=31187403&startDate=2024-11-29&endDate=2024-12-04&adults=2&tpid=9001&eapid=1&mpa=825.00&mpb=337.65&mpd=USD"
},
"WebDetails": {
"Method": "GET",
"Href": "https://www.vrbo.com/364168?adults=2&startDate=2024-11-29&endDate=2024-12-04"
}
}
}
]
},
{
"Id": "76252345",
"Status": "AVAILABLE",
"RoomTypes": [
{
"RatePlans": [
{
"CancellationPolicy": {
"Refundable": true,
"FreeCancellation": true,
"FreeCancellationEndDateTime": "2024-11-15T23:59:00-08:00",
"CancellationPenaltyRules": [
{
"PenaltyPercentOfStay": "50.00",
"PenaltyStartDateTime": "2024-11-15T23:59:00-08:00",
"PenaltyEndDateTime": "2024-11-22T23:59:00-08:00"
},
{
"PenaltyPercentOfStay": "100",
"PenaltyStartDateTime": "2024-11-22T23:59:00-08:00",
"PenaltyEndDateTime": "2024-11-29T00:00:00-08:00"
}
]
}
}
],
"Price": {
"BaseRate": {
"Value": "800.00",
"Currency": "USD"
},
"TaxesAndFees": {
"Value": "515.12",
"Currency": "USD"
},
"TotalPrice": {
"Value": "1315.12",
"Currency": "USD"
},
"AvgNightlyRate": {
"Value": "160.00",
"Currency": "USD"
},
"AvgNightlyRateWithFees": {
"Value": "227.16",
"Currency": "USD"
},
"TotalPriceWithPropertyFees": {
"Value": "1315.12",
"Currency": "USD"
}
},
"Links": {
"WebSearchResult": {
"Method": "GET",
"Href": "https://www.vrbo.com/search?selected=76252345&startDate=2024-11-29&endDate=2024-12-04&adults=2&tpid=9001&eapid=1&mpa=800.00&mpb=515.12&mpd=USD"
},
"WebDetails": {
"Method": "GET",
"Href": "https://www.vrbo.com/2695601?adults=2&startDate=2024-11-29&endDate=2024-12-04"
}
}
}
]
}
]
}
Puntos de venta compatibles
Monedas aceptadas
Códigos de error
Detalles de la API
Aquí puedes explorar las definiciones de punto de conexión de esta API, ir a API Explorer para probar todos los puntos de conexiones de XAP, descargar las especificaciones de OpenAPI y descargar nuestras colecciones de Postman. Hacer pruebas con una de estas opciones o con todas te permitirá comprender qué diferencia hay entre los ejemplos y las definiciones del esquema y los resultados reales.