Car Listings API

Guidance and examples for accessing the Car Listings API

The Car Listings API allows you to search Expedia car inventory by date, pickup, and drop-off location to return a listing of available cars for hire.

Endpoint

MethodEndpoint
GEThttps://apim.expedia.com/cars/listings

Required Headers

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

Optional Headers

Accept-Encoding:gzip

More info on gzip

Next Steps

  • Deeplink customer to Expedia website where they can book selected car.
  • Get more information about a specific offer via the Car Details API.

Example of Search Request

Search with Airport

https://apim.expedia.com/cars/listings?pickup.airport=SEA&dropOff.airport=LAS&pickupTime=2021-06-10T10:00&dropOffTime=2021-06-10T16:30}
https://apim.expedia.com/cars/listings?&pickupTime=2021-06-26&dropOffTime=2021-06-28T15:30&pickup.geoLocation=47.61212,-122.332279&dropOff.address=1919+5Th+Avenue%2CSeattle&pickup.radius=8&unit=KM&links=WS,AD}

Search with Discount

https://apim.expedia.com/cars/listings?pickup.airport=LAS&pickupTime=2021-06-10T09:00&dropOffTime=2021-06-16T10:00&discount1.supplier=Hertz&discount1.type=CorpDiscount&discount1.code=50075&suppliers=Hertz

Error Codes

Common Error Codes

HTTP Status CodeError CodeError Message
500APPLICATION_ERRORApplication error.
400INVALID_ACCEPT Accept is either missing or invalid. Please provide a correct Accept as following: Accept:application/ vnd.exp-<product>.<version>+<format> (product={car,flight,hotel},version={v3},format={json}).
400Only one Accept is allowed.
400INVALID_PARTNER_TRANSACTION_ID Partner-Transaction-Id is missing.
400Only one Partner-Transaction-Id is allowed.
400INVALID_CLIENT_KEY Invalid client key: [ client key value ].
400Only one Key is allowed.
400INVALID_DRIVER_AGE Invalid driver age. The value should be a number greater than 0.
400Invalid driver age. Allowed value is between [ age ] and [ age ].
400TOO_MANY_SUPPLIERSToo many suppliers. Please specify [ number ] or fewer suppliers.
400INVALID_SUPPLIERSInvalid suppliers. Invalid values are: [ supplier names ].
400INVALID_CAR_CLASSESInvalid car class. Invalid values are: [ car class names].
400TOO_MANY_CAR_CLASSESToo many car classes. Please specify [ number ] or fewer car classes.
400INVALID_SORT_TYPEInvalid sort type. Allowed values are: [ list of sort types].
400INVALID_SORT_ORDERInvalid sort order. Allowed values are: [ list of sort order values ].
400INVALID_SORTThe sortType or sortOrder is missing.
400INVALID_LIMITInvalid limit. The value should be an Integer greater than 0.
400INVALID_DISCOUNT_SUPPLIERInvalid discount supplier. Invalid value is: [ value].
400INVALID_DISCOUNT_TYPEInvalid discount type. Allowed values are: [ value ].
400INVALID_DISCOUNTS_CODEInvalid discount code. Invalid value is: [ discount code value ].
400DISCOUNT_SUPPLIER_MISMATCH_WITH_FILTER_SUPPLIERSInvalid discount supplier. Discount supplier should be included in filter suppliers. Invalid values are: [ value ]
400INVALID_TRANSMISSIONSInvalid transmissions.
400INVALID_AIR_CONDITIONINGInvalid air conditioning. Allowed value should be true or false.
400INVALID_CAR_TYPESInvalid car types.
400PICKUP_REQUIREDPlease specify one pickup.
400MULTIPLE_PICKUPOnly one pickup is allowed.
400INVALID_PICKUP_AIRPORTInvalid pickup airport. The value should be 3 alphaNum characters.
400EMPTY_PICKUP_CITYPickup city is empty.
400EMPTY_PICKUP_ADDRESSPickup address is empty.
400MULTIPLE_DROP_OFFOnly one drop off is allowed.
400INVALID_DROP_OFF_AIRPORTInvalid drop off airport. The value should be 3 alphaNum characters.
400EMPTY_DROP_OFF_CITYDrop off city is empty.
400EMPTY_DROP_OFF_ADDRESSDrop off address is empty.
400INVALID_UNITInvalid unit. Allowed values are KM and MI.
400INVALID_PICKUP_OR_DROP_OFF_DATETIMEPickup or drop off datetime is either missing or invalid.
400PICKUP_OR_DROP_OFF_DATETIME_OUT_OF_RANGEInvalid pickup or drop off date. Valid dates range from the current date to [ number ] days in the future.
400DROP_OFF_DATETIME_LESS_OR_EQUAL_PICKUP_DATETIMEDrop off datetime must occur after pickup datetime.
400SEARCH_WINDOW_EXCEED_UPPER_LIMITSearch window is too large. Maximum length of rental is [ number ] days.
400SEARCH_WINDOW_UNDER_LOWER_LIMITThe drop off datetime should occur at least [ number ] hours after the pickup datetime.
400INVALID_PICKUP_GEOLOCATIONPickup geoLocation is either missing or invalid.
400INVALID_PICKUP_GEOLOCATION_LATITUDEPickup geoLocation latitude is either missing or invalid, Please specify values in the range[ value ] and [ value ].
400INVALID_PICKUP_GEOLOCATION_LONGITUDEPickup geoLocation longitude is either missing or invalid, Please specify values in the range [ value ] and [ value ].
400INVALID_DROP_OFF_GEOLOCATIONDrop off geoLocation is either missing or invalid.
400INVALID_DROP_OFF_GEOLOCATION_LATITUDEDrop off geoLocation latitude is either missing or invalid, Please specify values in the range [ value ] and [ value ].
400INVALID_DROP_OFF_GEOLOCATION_LONGITUDEDrop off geoLocation longitude is either missing or invalid, Please specify values in the range [ value ] and [ value ].
400INVALID_PICKUP_RADIUSThe pickup radius should be an Integer greater than 0.
400INVALID_DROP_OFF_RADIUSThe drop off radius should be an Integer greater than 0.
400INVALID_REQUEST_PARAMETERSInvalid request parameters.
400INVALID_PICKUP_OR_DROPOFF_LOCATIONInvalid pickup or dropoff location.
400INVALID_LOCALEInvalid locale. The locale should be two-letter language code and two-letter region code connected with '_'.
200INVALID_COUPON_CODEThe Coupon Code '[ coupon code ]' is unavailable, but we found other rates for you.
200INVALID_CORPORATE_DISCOUNT_CODEThe Corporate Discount Code '[ corporate discount code ]' is unavailable, but we found other rates for you.
200NO_RESULT_FOUNDSorry, your query completed successfully, but did not return any inventory. Please adjust your search parameters and try again.
200DISCOUNT_CODE_NOT_APPLICABLEWe didn't find any results that matched your discount code and rental car company, but we did find other options available at this location.
200INVALID_SUPPLIERSInvalid suppliers. Invalid values are: [ supplier names ].
200UNSUPPORTED_LOCALEThe requested locale is not supported.

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!