Skip to content

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.

POST /Accommodation/BasicCatalog

  • 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 the Room property.

    • 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 (types 1 and 2).

  • 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.
  • 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 of Price with the most expensive rates, so that it can be shown struck through next to Price: 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 like Price: same markup and commission. If those groups have a single rate, it is equal to Price. It is null, 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 the Filter request parameter. In all cases, an array of objects is returned with Value (matching the values defined in Filter) and Count indicating how many matches exist for each filter. Information is returned for the following filters (see the Filter request 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 return null.
      • ErrorCode: (int). Code that identifies the error.
  • ErrorEntityBreakDown (list): list that contains objects with the name and ID in case of error.

    • Id (string): identifier
    • Name (string): related name of the identifier.