API Change Log (comparing to v1.5)
What changed in Hotel API v2.0 compared to v1.5.
v2.0 Changes
- CHANGE — Added data validation for
vpa_payment_instructionsandspecial_requestattributes in the request of the book API method. - ADD — Added new response parameters
vpa_card_poolsandvpa_payment_instructionstoget_checkout_dataAPI method to assist with VPA payment flow.vpa_card_poolscontains list of available card pools for booking.vpa_payment_instructionscontains default payment instructions that should be sent in booking request. - ADD — Added new request parameter
previous_booking_uidtoget_checkout_dataAPI method to assist with booking modification flow. - ADD — Added structure
taxes_and_feesto response of theget_availabilityAPI method. - ADD — Added support for rental car and air shopping and booking.
- DELETE — Deleted
get_profile_infoAPI method. - ADD — Added
default_counter_offer_emailto the response ofget_checkout_datato assist with on-request booking flow. - ADD — Added
sort_metricto the response ofget_listto assist with sorting that involves dynamic values. - CHANGE — Changed the
phoneattribute returned indefault_billing_addressofget_checkout_datafrom string to an object that also includes country code. - ADD — Added ability to return alternative hotels for single hotel searches in
get_listvia new optional booleansuggest_alternative(returns up to 10 alternatives if the requested hotel is sold out). - ADD — Added support for new status filter
"pending"to theget_reservation_listAPI methods. - ADD — Added new attribute
potential_squatterto each rate in the response ofget_rates,get_rate_details,get_reservation_details, andget_recommended_rateAPI methods. - FIX — Changed logic for the email address calculation submitted in
default_counter_offer_emailofget_checkout_data. - ADD — Added specific text returned for
res_payment_descriptionattribute inget_reservation_detailsfor SPC provider by invoice payment method. - ADD — Added
has_ecofriendly_badgeboolean attribute to the response ofget_listandget_detailed_infofor hotels with an eco-friendly badge according to TrustYou. - ADD — Added
merchant_of_recordfield to each rate inget_rates,get_rate_details,get_reservation_details, andget_recommended_ratethat indicates who the merchant of record is (e.g."supplier"or"property"). - ADD — Added new
rate_targetobject to the response ofget_availabilityto reflect medium price by hotels search. - ADD — Added new object
additional_company_idsto the response ofget_reservation_detailscontaining various internal IDs (e.g. GCN, SMID, SAP, etc). - ADD — Added
is_on_request_hotelboolean toget_detailed_infoandget_listfor hotels where some rates might be on-request. - ADD — Added
is_on_requestboolean toget_rates,get_rate_details,get_recommended_rate, andget_reservation_detailsfor rates that are on-request and require special handling. - ADD — Added new optional request attribute
is_on_requestto thebookAPI method for receiving counter-offer emails for on-request reservations. - ADD — Added support for pending booking status in
get_reservation_detailsandget_reservation_listfor on-request reservation processing. - FIX — Added validation that prevents cases when CC number is passed together with the index of a credit card from traveler profile to the
bookAPI method. - DELETE — Completely deprecated
entity_idas a request parameter fromcancel,get_reservation_details, andrebookAPI methods. - DELETE — Deprecated
chain_nameattribute from the response ofget_rate_details,get_reservation_details, andget_recommended_rate. - CHANGE — Moved
commission_reprattribute in the response ofget_rate_detailsinside the new"commission"structure. - CHANGE — Added data validation for
credit_card_country_codeattribute in the request of thebookAPI method. - CHANGE — Replaced the authentication schema, where the signature is now sent via HTTP header (
X-SIGNATURE) and the message being signed is a concatenation of a request URL path (including the query) and a request body. - CHANGE — Added more details about the rate being booked to the response of
get_reservation_detailsand moved all rate-related attributes into"rate_details"container. - CHANGE — Replaced
alt_company_idrequest parameter ofget_entity_idwithtspm_company_id,obt_company_id, andsmid_company_id. - CHANGE — Moved some API methods that are not hotel-specific outside of the
/hotelsendpoint (e.g./v2.0/get_entity_id/instead of/v2.0/hotels/get_entity_id/). - DELETE —
entity_idis no longer a required and supported request attribute forget_errorsAPI call. - DELETE —
credit_card_typeis no longer a required and supported request attribute forbookAPI call. - CHANGE — Changed the
commissionableattribute in the response ofget_rates,get_rate_details, andget_recommended_rateto returnnullin addition totrue/false. - REMOVE — Removed
other_fees_descriptionattribute from the response ofget_detailed_infoas it duplicates information returned in thepolicyattribute. - ADD — Added new
tax_detailselement to the response ofget_rate_details. - CHANGE — Moved
promo_messagesresponse attribute fromget_availabilitytoget_list. - CHANGE — Split “Internet” amenity into “Internet” and “WiFi” with new codes:
INTT(internet),FINTT(free internet),WIFI(wifi),FWIFI(free wifi).
