Basic accommodation catalog
This method allows us to obtain the minimum and essential information about the different accommodations. It can be used, for example, to create an initial search page.
The result will be a list of the different available accommodations according to the search filters.
Access method
Section titled “Access method”POST /Accommodation/BasicCatalog
Request structure
Section titled “Request structure”-
People: (list)Required. List of people included in the package. The order in which people are added to this list later determines the index to use in theRoomproperty.Person: (object)Required. Person information.-
Type: (int)Required. Person type. -
Age: (int)Optional. Person age. Required only if the person is a child or a baby (types1and2).
-
-
AccommodationIds: (list)Optional. List that allows retrieving packages only from a specific set of accommodations.(string):Optional. Accommodation identifier.
-
Destination: (object)Required. Geolocation used to search for accommodations. See SuggestedLocation.Latitude: (decimal)Required. Geolocation latitude.Longitude: (decimal)Required. Geolocation longitude.
-
CheckIn: (date)Required. Accommodation check-in date. ISO 8601 format (yyyy-MM-dd). -
CheckOut: (date)Required. Accommodation check-out date. ISO 8601 format (yyyy-MM-dd). -
RoomDistribution: (list)Required. List of rooms that will make up the package.Room: (list)Required. Information about the people who make up this room.(int):Required. Index corresponding to the position of the person in the People list.
-
Sort: (object)Optional. Result ordering.-
Criteria: (int)Optional. Sort type.
-
-
Paging: (object)Optional. Pagination information.Number: (int)Optional. Requested page number.Size: (int)Optional. Number of items per page.
Request examples
Section titled “Request examples”Response structure
Section titled “Response structure”-
TotalPages: (int). Total number of pages. -
Accommodations: (list). List of accommodations. -
-
MainImageUrl: (string). Main accommodation image URL. -
Name: (string). Accommodation name. -
Description: (string). Accommodation description. -
Address: (string). Accommodation address. -
City: (string). City where the accommodation is located. -
PostalCode: (string). Accommodation postal code. -
Country: (string). Country where the accommodation is located. -
Type: (string). Accommodation type. -
Category: (string). Accommodation category. -
Price: (decimal). “From” price of the accommodation: for each requested room, the price of its cheapest rate, added up. -
MaxPrice: (decimal). Counterpart ofPricewith the most expensive rates, so that it can be shown struck through next toPrice: for each requested room, the price of the most expensive rate in the group (same board type and rate type) of the rate that gives the “from” price, added up. It is calculated likePrice: same markup and commission. If those groups have a single rate, it is equal toPrice. It isnull, and therefore not included in the response, when the accommodation provider does not report it yet.
-
-
AvailableFilters: (list). Provides information about the filters available according to the search criteria, for example to refine future searches using theFilterrequest parameter. In all cases, an array of objects is returned withValue(matching the values defined inFilter) andCountindicating how many matches exist for each filter. Information is returned for the following filters (see theFilterrequest parameter definition):AccommodationBoards: (list)AccommodationCategories: (list)AccommodationCities: (list)AccommodationRateClasses: (list)AccommodationTypes: (list)
-
Success: (boolean). Value that indicates whether the call was processed correctly or not. -
Errors: (list). Array of errors.Error: (object).ErrorMessage: (string). Error message explaining why the request was not successful. If it was correct, it will returnnull.ErrorCode: (int). Code that identifies the error.
-
ErrorEntityBreakDown(list): list that contains objects with the name and ID in case of error.Id(string): identifierName(string): related name of the identifier.