Lodging Quotes API

Guidance and examples for accessing the Lodging Quotes API

The Lodging Quotes API will return the price and availability information for selected Expedia lodging property IDs.

Endpoint

MethodEndpoint
GEThttps://apim.expedia.com/lodging/quotes

Required Headers

Key:Expedia API key
Authorization:Expedia API Authorization String
Accept:application/vnd.exp-lodging.v3+json
Partner-Transaction-Id:[Partner TransactionID String]

Example Quotes API Request

Request

https://apim.expedia.com/lodging/quotes?links=WS,WD&propertyIds=87704892,46330564,31187403,76252345&checkIn=2024-11-29&checkOut=2024-12-04

Response

{
    "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"
                        }
                    }
                }
            ]
        }
    ]
}

Supported Points of Sale

Supported Points of Sale

Only the following Points of Sale are supported:

 POSCurrency CodeLocaleBase Site URL
1AUAUDen_AUwww.stayz.com.au
2BRBRLpt_BRwww.vrbo.com/pt-br
3CACADen_CAwww.vrbo.com/en-ca
4CACADfr_CAwww.vrbo.com/fr-ca
5DEEURde_DEwww.fewo-direkt.de
6ESEURes_ESwww.vrbo.com/es-es
7FREURfr_FRwww.abritel.fr
8UKGBPen_GBwww.vrbo.com/en-gb
9ITEURit_ITwww.vrbo.com/it-it
10NLEURnl_NLwww.vrbo.com/nl-nl
11USUSDen_USwww.vrbo.com
12ATEURde_ATwww.vrbo.com/de-at
13DKDKKda_DKwww.vrbo.com/da-dk
14FIEURfi_FIwww.vrbo.com/fi-fi
15GREURel_GRwww.vrbo.com/el-gr
16JPJPYja_JPwww.vrbo.com/ja-jp
17NONOKnb_NOwww.vrbo.com/no-no
18NZNZDen_NZwww.bookabach.co.nz
19PTEURpt_PTwww.vrbo.com/pt-pt
20SESEKsv_SEwww.vrbo.com/sv-se
21SGSGDen_SGwww.vrbo.com/en-sg
22MXMXNes_MXwww.vrbo.com/es-mx
23PLPLNpl_PLwww.vrbo.com/pl-pl

Supported Currencies

Supported Currencies

For the first release of the Quotes API, only the following currencies are supported:

ARSAUDBRLCADCHFCNYCOP
CZKDKKEURGBPHKDHRKHUF
IDRILSINRJPYKRWMXNMYR
NOKNZDPLNRUBSEKSGDTHB
USDZARTRY    

Error Codes

Common Error Codes

HTTP Status CodeError CodeError ResponseCause
500APPLICATION_ERRORApplication error.Application error.
200NO_RESULTS_FOUNDSorry, your query completed successfully, but did not return any inventory. Please adjust your search parameters and try again.No property found.
400QUOTES_SEARCH_CRITERIA_INCOMPLETEQuotes search criteria are incomplete. Please specify the following search criteria together: [propertyIds, checkIn, checkOut]Missing required request parameter.
400INVALID_PROPERTYIDSThe propertyIds is invalid, which contains invalid id [%s]Please specify correct Expedia property IDs. Available Expedia property ID list could be found in Related Links section below.
400TOO_MANY_PROPERTYIDSToo many property IDs. Please specify up to 1000 property IDs in Expedia property IDs.Requested too many properties.
400INVALID_CHECKINThe checkIn is in invalid. The format should be 'YYYY-MM-DD'.The format of checkIn is invalid.
400INVALID_PRICEThe price is invalid. Allowed value is a number.Price is not a number
400INVALID_CHECKOUTThe checkOut is invalid. The format should be 'YYYY-MM-DD'.The format of checkOut is invalid.
400CHECKOUT_EARLIER_THAN_CHECKINThe checkout date must occur after checkin date.The checkout date must occur after checkin date.
400CHECKIN_IN_THE_PASTThe checkIn should not be in the past.The checkIn should not be in the past.
400SEARCH_WINDOW_OUT_OF_RANGESearch window is too large. Maximum length of stay is %d days.Search window is too large.
400CHECKOUT_OUT_OF_RANGEThe checkOut is out of range. Checkout date can only occur up to %d days in the future.The checkOut is out of range.
400UNSUPPORTED_CURRENCYThe currency is invalid. The requested currency is not supported.The given currency is not supported.
400TOO_MANY_ROOMSRequested too many rooms. Please search up to 8 rooms.Requested too many rooms.
400INVALID_ADULTSInvalid adult number detected. Allowed value is a number.Please specify correct adult number.
400ADULTS_OUT_OF_RANGEToo many adults. The number of adults should not be greater than 99.Requested too many adults.
400ROOM_NUMBER_NOT_IN_SEQUENTIALRoom numbers of adults invalid. Room numbers should be in numeric sequential and start from 1.Please specify adult number for each desired room. For example, do not specify room1.adults=2&room3.adults=3 only without specifying room2.adults.
400INVALID_ROOM_OCCUPANTSOnly childAges specified. Adults info is mandatory for each room.Children should be accompanied by adults for each room.
400INVALID_CHILDAGESInvalid child occupants detected. Each child age should be a number of less than 17 and child count of any room should be less than %d.Child age is not a number, or child age is out of range, or children number exceeded the maximum allowed number.
400INVALID_LINKSThe links is invalid. The links could be any set of WD, WS separated by comma.Please specify correct links.
400INVALID_CLIENT_KEYInvalid client key: %s.Key in request header is invalid or too many Keys in header.
400INVALID_ACCEPTPlease provide a valid Accept header.Accept in request header is invalid or too many Accepts in header.
400INVALID_PARTNER_TRANSACTION_IDPartner-Transaction-Id is missing.Partner-Transaction-Id in request header is empty.

API details

Here, you can explore the endpoint definitions for this API, then go to the API Explorer to try out all the XAP endpoints, download OpenAPI specs, or download our Postman collections. Testing with one or all of these options will give you an understanding of how the examples and schema definitions compare to the actual output.


Did you find this page helpful?
How can we improve this content?
Thank you for helping us improve!