Hotels API v2 - Migration Guide


Overview

Version 2 of the Hotels API introduces performance improvements and new capabilities in session management, property search options, and data retrieval flow. The new flow reduces response time and gives clients more flexibility in handling sessions and static data.

Backward Compatibility and Deprecation

  • v1 remains operational during transition period – until the end of 2025
  • Clients are encouraged to migrate to v2 within the transition period
  • When the transition period ends, v1 will be removed

Logic Changes from v1 to v2

Areav1 Behaviorv2 UpdateWhat does it mean?
Search by Property IDsSearch supported by radius or rectangle only.Introduced the new search_by/property_ids parameter to search by a specific list of property IDs.If you know which Property to query, use this option to skip geographic search.

This is especially helpful for clients managing their own hotel databases.
Static Property ContentStatic content always included in Search and Get Offers responses.Static content excluded to improve speed. Retrieve via Retrieve Property Details when necessary.Adjust your integration to call content endpoint separately if needed.

This is especially helpful for clients managing their own hotel databases.
Direct Property OffersOffers were available only after running search.Can now retrieve property offers directly, without calling Search first.Useful for cases where hotel ID is already known.
Search Parameters PersistenceSearch parameters do not persist between the search and Get Offers calls.If session_id is provided during search, the search parameters (dates, occupancies) are stored within the session.Pass session_id on search to enable parameter reuse.

Session Logic in v2

  • When Check Availability is Called:
    • If session_id is not passed → search parameters are not saved; you must pass them again in the Get Offers request
    • If session_id is passed → search parameters (check_in/out, occupancies) are stored for the session_id
  • When Get Offers is Called:
    • session_id is required
    • If search_input not passed:
      • Parameters are retrieved from the search linked to the session_id
        • If not found → API returns 400 Bad Request
    • If search_input is passed
      • Parameters from the search_input take precedence and overwrite the saved ones
      • Updated parameters are stored for the session_id

Both session_id and search_input are now returned in Get Offers response, so clients can verify which data was used.

Endpoint Changes

v1 Endpointv2 EndpointKey ChangesNeed Actions
POST /​partner/​v1/​search_sessionsPOST /​partner/​v2/​check_availability• Now supports search by radius, rectangle, and property IDs.

• Session no longer created automatically.
• Update endpoint path to /​v2/​check_availability.

• Optionally generate and send your own session_id.

• Expect a flat array of hotels (property_id, rate) instead of nested properties.
• facilities and session_id removed — call /​v2/​properties/​details if needed.
GET /​partner/​v1/​search_sessions/​(session id)/​properties/​(property id)/​offersPOST /​partner/​v2/​check_availability/​properties/​(property id)/​offers• Session flow changed → client session id now required.
• search input optional if included in /​v2/​check_availability request.
• Change method to POST.

• Always send session_id in request body.

• If no search made with this session, include search_input (check-in/out, rooms).

• Response changes:

– new field search_input

GET /​partner/​v1/​search_sessions/​(session id)/​offers/​(offer id)/​priceGET /​partner/​v2/​check_availability/​(session id)/​offers/​(offer id)/​price• Check Price uses new session logic.• Update path to /​v2/​check_availability/​(session id)/​offers/​(offer_id)/​price.

• Ensure valid session_id.

• Parameters and responses same as in v1.
POST /​partner/​v1/​ordersPOST /​partner/​v2/​orders• No structural change.

• Integrated with v2 session logic.
• Replace with v2 path.

• Ensure you pass the correct session_id and offer_id obtained from the v2 flow .

• Parameters and responses same as in v1.
GET /​partner/​v1/​orders/​(order id)GET /​partner/​v2/​orders/​(order id)• No structural change.• Replace with v2 path.

• Parameters and responses same as in v1.
POST /​partner/​v1/​orders/​(order id)/​bookPOST /​partner/​v2/​orders/​(order id)/​book• No structural change.

• Integrated with v2 session logic.
• Replace with v2 path.

• Parameters and responses same as in v1.
POST /​partner/​v1/​orders/​(order id)/​cancelPOST /​partner/​v2/​orders/​(order id)/​cancel• Same function.

• No structural change.
• Replace with v2 path.

• Parameters and responses same as in v1.
POST /​partner/​v1/​properties/​detailsPOST /​partner/​v2/​properties/​details• Static content moved out of Search & Get Offers.

• Use to retrieve property details.
• Replace with v2 path.

• Use when static content required.

• Parameters and responses same as in v1.