Wednesday, May 1, 2013

Changes to the hotel chains format

We changed the format of the Hotel Chains attribute.
The old format looked like this:

  1. "Hotel Attributes": {
  2.       "Chain": "Hilton Hotels"
  3.     }

A string with the formal name, as a global attribute in the API reply.
The new format looks like this:

  1. "Hotel Attributes": {
  2.           "Chain": [
  3.             {
  4.               "gds_code": "HH",
  5.               "Name": "Hilton Hotels",
  6.               "eva_code": "EPC-47"
  7.             }
  8.           ]
  9.         }

The new format allows for simpler integration with client databases.
We have also moved the chain attribute to be location-related and it is no longer a global attribute.
This allows Eva to address complex itineraries, such as "2 nights in rome. hilton. 3 nights in paris. sheraton"

The changes will be part of the next revision of the API.

To preview the change and ease the integration we added a new "from future" request attribute.
Add ffi_chains to the request query and the API reply will contain the new chain format.


No comments:

Post a Comment