4.3.1 • Published 6 months ago

liteapi-node-sdk v4.3.1

Weekly downloads
-
License
ISC
Repository
github
Last release
6 months ago

Table of Contents

Introduction

liteAPI is an innovative and robust collection of infrastructure APIs that cater to the travel industry. It is designed to empower developers, offering them the fastest way to build and launch comprehensive travel applications.

At the heart of LiteAPI's power is its extensive network of over 2 million properties worldwide. By incorporating LiteAPI into an app, developers can effortlessly tap into the vast inventory, allowing users to search and book accommodations at these properties.

But that's not all. With LiteAPI, monetization is made even more simple. Developers can generate revenue through their hospitality products by selling accommodations from LiteAPI's broad portfolio of properties. This means that not only can developers launch their products quickly, they can also start generating profits in no time.

LiteAPI opens up a range of powerful functions for travel and hospitality applications. Its features include:

Don't have an account yet? Sign Up Here.

Installing

Install the package using the following npm or yarn commands:

npm install liteapi-node-sdk
# or
yarn add liteapi-node-sdk

Usage

After you have installed the LiteAPI package, you need to configure it with your API key. The API key is available in the liteAPI Dashboard. Here's the step to add the API key to the package.

const liteApi = require('liteapi-node-sdk')(YOUR_API_KEY);

Static data

Static data can be directly fetched from the functions below. Alternatively, LiteAPI also provides an option to download static data directly from the Github URL.

Suggest a list of places

The getPlaces function look up for a list of places and areas, given a search query. Places can be used to search for hotels within a location and restrict the list to results within the boundaries of a selected place.

const result = await liteApi.getPlaces('Manhattan');
NameTypeDescriptionNotes
textQuerystringSearch query. e.g. 'Manhattan'required
typestringRestricts the results to places matching the specified type. e.g. 'hotel'optional
languagestringThe language code, indicating in which language the results should be returned. e.g. 'en'optional

An array of city objects containing the following properties:

FieldTypeDescription
dataobjectAn array of the suggested places.

List of cities

The getCitiesByCountryCode function returns a list of city names from a specific country. The country codes must be in ISO-2 format. To get the country codes in ISO-2 for all countries please use the getCountries function.

    const countryCode = "IT";
    const result = await liteApi.getCitiesByCountryCode(countryCode);
NameTypeDescriptionNotes
countryCodestringCountry code in iso-2 format (example: US)required

An array of city objects containing the following properties:

FieldTypeDescription
citystringThe name of the city.

List of Countries

The getCountries function returns the list of countries available along with its ISO-2 code.

      const result = await liteApi.getCountries();

The function does not need any additional parameter.

An array of country objects containing the following properties:

FieldTypeDescription
codestringThe country code in iso-2 format.
namestringThe name of the country.

List of available currencies

The getCurrencies function returns all available currency codes along with its name and the list of supported countries that the currency applies to.

    const result = await liteApi.getCurrencies();

This function does not need any additional parameters.

An array of currency objects containing the following properties:

NameTypeDescription
codestringThe currency code.
currencystringThe name of the currency.
countriesArrayAn array of countries where the currency is used.

List of hotels

The getHotels function returns a list of hotels available based on different search criterion. The API supports additional search criteria such as city name, geo coordinates, and radius. This function provides detailed hotel metadata, including names, addresses, ratings, amenities, and images, facilitating robust hotel search and display features within applications.

const result = await liteApi.getHotels({
    countryCode: 'IT',
    cityName: 'Rome'
});

Please refer to the documentation of this endpoint for the full list of parameters and their descriptions.

An array of hotel objects containing the following properties:

NameTypeDescription
idstringThe unique identifier of the hotel.
namestringThe name of the hotel.
hotelDescriptionstringThe description of the hotel.
currencystringThe currency used in the hotel.
countrystringThe country code of the hotel.
citystringThe city where the hotel is located.
latitudenumberThe latitude coordinates of the hotel's location.
longitudenumberThe longitude coordinates of the hotel's location.
addressstringThe address of the hotel.
zipstringThe postal code of the hotel.
main_photostringThe URL of the main photo of the hotel.
starsnumberThe star rating of the hotel.

Hotel details

The getHotelDetails function returns all the static contents details of a hotel or property when given a hotel ID. The static content includes name, description, address, amenities, cancellation policies, images and more.

    const hotelID = "lp24373";
    const result = await liteApi.getHotelDetails(hotelID);
NameTypeDescription
idstringThe unique identifier of the hotel.
namestringThe name of the hotel.
hotelDescriptionstringThe description of the hotel.
checkinCheckoutTimesObjectAn object containing the check-in and check-out times of the hotel.
         checkoutstringThe check-out time of the hotel.
         checkinstringThe check-in time of the hotel.
hotelImagesArrayAn array of hotel image objects containing the following properties:
         urlstringThe URL of the hotel image.
        thumbnailUrlstringThe thumbnail URL of the hotel image.
         captionstringThe caption of the hotel image.
         orderstringThe order of the hotel image (null if not applicable).
         defaultImagebooleanIndicates whether the hotel image is the default image or not.
currencystringThe currency used in the hotel.
countrystringThe country code of the hotel.
citystringThe city where the hotel is located.
starRatingnumberThe star rating of the hotel.
locationObjectAn object containing the latitude and longitude coordinates of the hotel's location.
         latitudenumberThe latitude coordinate of the hotel's location.
         longitudenumberThe longitude coordinate of the hotel's location.
addressstringThe address of the hotel.
zipstringThe postal code of the hotel.
chainIdstringThe unique identifier of the hotel chain.
hotelFacilitiesArrayAn array of hotel facilities offered by the hotel.

Hotel reviews

The getHotelReviews function returns a list of reviews for a specific hotel identified by hotelId. The number of reviews returned is limited by the limit parameter.

    const result = await liteApi.getHotelReviews("lp24373", 200, true);

IATA code list

The getIataCodes function returns the IATA (International Air Transport Association) codes for all available airports along with the name of the airport, geographical coordinates and country code in ISO-2 format.

    const result = await liteApi.getIataCodes();

This function does not need any additional parameters.

An array of IATA objects with the following properties:

NameTypeDescription
codestringThe IATA code.
namestringThe name of the IATA.
latitudenumberThe latitude coordinates of the IATA.
longitudenumberThe longitude coordinates of the IATA.
countryCodestringThe country code of the IATA.

Hotel facilities

The API returns the list of hotel facilities available in the system.

    const result = await liteApi.getHotelFacilities();

This function does not need any additional parameters.

An array of facilities with the following properties:

nameTypeDescription
statusstringStatus of the operation.
dataobjectDetails of the hotel facilities.

Hotel types

The API returns a list of available hotel types

    const result = await liteApi.getHotelTypes();

This function does not need any additional parameters.

An array of hotel types with the following properties:

nameTypeDescription
statusstringStatus of the operation.
dataobjectDetails of the hotel types.

Hotel chains

The API returns a list of available hotel chains

    const result = await liteApi.getHotelChains();

This function does not need any additional parameters.

An array of hotel chains with the following properties:

nameTypeDescription
statusstringStatus of the operation.
dataobjectDetails of the hotel chains.

liteAPI offers a comprehensive and simple way to implement Hotel Booking flow. The booking flow consists of 3 sections: Search, Book, and booking management.

Search

Hotel full rates availability


The getFullRates function return the rates of all available rooms along with its cancellation policies for a list of hotel ID's based on the search dates.

    const result = await liteApi.getFullRates({
        checkin: "2023-07-15",
        checkout: "2023-07-16",
        currency: "USD",
        guestNationality: "US",
        hotelIds: ["lp3803c", "lp1f982", "lp19b70", "lp19e75"],
        occupancies: [
            {
                rooms: 1,
                adults: 2,
                children: [2, 3]
            }
        ]
    });
NameTypeDescriptionNotes
hotelIdsarray of stringsList of hotelIdsrequired
checkinstringCheck in data in YYYY-MM-DD formatrequired
checkoutstringCheck out data in YYYY-MM-DD formatrequired
currencystringCurrency code - example (USD)required
guestNationalitystringGuest nationality ISO-2 code - example (SG)required
occupanciesarray of objectsOccupanciesrequired
guestIdstringUnique traveler ID if availableoptional

An array of hotel full rates with the following properties for each roomType:

NameTypeDescription
offerIdstringThe offer for this rate. To be used when calling the prebook endpoint
roomTypeIdstringThe ID of the room type.
supplierstringThe name of the supplier.
supplierIdnumberThe ID of the supplier.
ratesArrayAn array of rate objects containing the pricing and details for each rate within the room type.
         rateIdstringThe ID of the rate.
         namestringThe name of the rate.
         maxOccupancynumberThe maximum occupancy of the room.
         boardTypestringThe type of board included (e.g., Bed Only).
         boardNamestringThe name of the board (e.g., Bed Only).
         priceTypestringThe type of pricing (e.g., commission).
         commissionArrayAn array of commission objects containing the commission amount and currency.
         retailRateObjectAn object containing the retail rate information, including total price, MSP (Marked Selling Price), and taxes and fees.
                 totalArrayAn array of total price objects containing the amount and currency.
                 mspArrayAn array of MSP (Marked Selling Price) objects containing the amount and currency.
                 taxesAndFeesArrayAn array of taxes and fees objects containing information about included or additional charges.
         cancellationPoliciesObjectAn object containing cancellation policy information.
             cancelPolicyInfosArrayAn array of cancellation policy info objects containing information about cancellation time, amount, currency, and type.
             hotelRemarksArrayAn array of hotel remarks.
             refundableTagstringThe tag indicating if the rate is refundable or non-refundable.

Book

Hotel rate prebook


The preBook function is used to confirm if the room rates are still available before a booking function can be called. The input to the function is an object that maps to the available options in the API documentation for the prebook endpoint. The function returns a prebook Id, a new rate Id and also contains information if the price, cancellation policy or boarding information changed.

    const offerId = ["abcde123"];
    const result = await liteApi.preBook({ offerId, usePaymentSdk: true, voucherCode: "1234" });
NameTypeDescriptionNotes
dataobjectthe input parameters for the API requestrequired

An object containing prebook information and room type details.

NameTypeDescription
prebookIdstringThe ID of the prebook.
hotelIdstringThe ID of the hotel.
currencystringThe currency used for pricing.
termsAndConditionsstringThe terms and conditions (if available).
roomTypesArrayAn array of room type objects containing the following properties:
         ratesArrayAn array of rate objects containing pricing and details for each rate within the room type.
                 rateIdstringThe ID of the rate.
                 namestringThe name of the rate.
                 maxOccupancynumberThe maximum occupancy of the room.
                 boardTypestringThe type of board included (e.g., Bed Only).
                 boardNamestringThe name of the board (e.g., Bed Only).
                 priceTypestringThe type of pricing (e.g., commission).
                 commissionObjectAn array of commission objects containing the commission amount and currency.
                 retailRateObjectAn object containing the retail rate information, including total price, MSP (Marked Selling Price), and taxes and fees.
                          totalObjectAn array of total price objects containing the amount and currency.
                          mspObjectAn array of MSP (Marked Selling Price) objects containing the amount and currency.
                          taxesAndFeesObjectAn array of taxes and fees objects containing information about included or additional charges.
                 cancellationPoliciesObjectAn object containing cancellation policy information.
                          cancelPolicyInfosObjectAn array of cancellation policy info objects containing information about cancellation time, amount, and type.
                          hotelRemarksArrayAn array of hotel remarks.
                          refundableTagstringThe tag indicating if the rate is refundable or non-refundable.
mspnumberThe Marked Selling Price (MSP) for the prebook.
commissionnumberThe commission amount for the prebook.
pricenumberThe price of the prebook.
priceTypestringThe type of pricing (e.g., commission).
priceDifferencePercentnumberThe percentage difference between the retail rate and the Marked Selling Price (MSP).
cancellationChangedbooleanIndicates if there were changes to the cancellation policy.
boardChangedbooleanIndicates if there were changes to the board type.
supplierstringThe name of the supplier.
supplierIdnumberThe ID of the supplier.

Hotel rate book


The book function confirms a booking when the prebook Id and the rate Id from the pre book stage along with the guest and payment information are passeed.

The guest information is an object that should include the guest first name, last name and email.

The payment information is an object that should include the name, credit card number, expiry and CVC number.

The response will confirm the booking along with a booking Id and a hotel confirmation code. It will also include the booking details including the dates, price and the cancellation policies.

const result = await liteApi.book({
  holder: {
    firstName: 'Steve',
    lastName: 'Doe',
    email: 's.doe@liteapi.travel'
  },
  payment: {
    method: 'TRANSACTION_ID',
    transactionId: '456'
  },
  prebookId: '123',
  guests: [
    {
      occupancyNumber: 1,
      firstName: 'Sunny',
      lastName: 'Mars',
      email: 's.mars@liteapi.travel'
    }
  ]
});
NameTypeDescriptionNotes
prebookIdstringprebook id retrieved from prebook responserequired
guestInfoobjecttraveler informationsrequired
         guestFirstNamestringtraveler first namerequired
         guestLastNamestringtraveler last namerequired
         guestEmailstringtraveler emailrequired
paymentMethodstringmethodEnum: "CREDIT_CARD" or "STRIPE_TOKEN"required
holderNamestringname of the cardholderrequired
paymentInfoobjectpayment informationsrequired
         card_numberstringthe card number associated with the credit cardrequired if paymentMethod is CREDIT_CARD
         exp_monthnumberthe expiration month of the credit cardrequired if paymentMethod is CREDIT_CARD
         exp_yearnumberthe expiration year of the credit cardrequired if paymentMethod is CREDIT_CARD
         cvcnumberthe card verification code (CVC) associated with the credit cardrequired if paymentMethod is CREDIT_CARD
         tokenstringtoken provided by Stripe for the payment method.required if paymentMethod is STRIPE_TOKEN

An object containing booking information and room details.

NameTypeDescription
bookingIdstringThe ID of the booking.
clientReferencestringThe client reference.
supplierBookingIdstringThe supplier booking ID.
supplierBookingNamestringThe supplier booking name.
supplierstringThe supplier.
supplierIdnumberThe ID of the supplier.
statusstringThe status of the booking.
hotelConfirmationCodestringThe hotel confirmation code.
checkinstringThe check-in date.
checkoutstringThe check-out date.
hotelobjectAn object containing hotel details.
bookedRoomsarrayAn array of booked room objects.
        roomTypeobjectAn object containing room type details.
        adultsnumberThe number of adults.
        childrennumberThe number of children.
        rateobjectAn object containing rate details.
               maxOccupancynumberThe maximum occupancy.
               retailRateobjectAn object containing the retail rate information, including total price.
guestInfoobjectAn object containing guest details.
createdAtstringThe creation date of the booking.
cancellationPoliciesobjectAn object containing cancellation policies information.
        cancelPolicyInfosObjectAn array of cancellation policy info objects containing information about cancellation time, amount, and type.
        hotelRemarksArrayAn array of hotel remarks.
        refundableTagstringThe tag indicating if the rate is refundable or non-refundable.
pricenumberThe price of the booking.
mspnumberThe MSP (Merchant Service Provider) price.
commissionnumberThe commission amount.
currencystringThe currency of the booking.

Booking management

Booking list


The getBookingListByGuestID function returns the list of all booking Id's for a given guest Id.

    const guestId = "FrT56hfty";
    const result = await liteApi.getBookingListByGuestId(guestId)
NameTypeDescriptionNotes
guestIdstringThe Guest Id of the userrequired

An array containing objects with the following properties:

NameTypeDescription
bookingIdstringThe booking ID.

Booking retrieve


The retrieveBooking function returns the status and the details of a specific booking Id.

    const bookingId = "uSQ6Zsc5R";
    const result = await liteApi.retrieveBooking(bookingId);
NameTypeDescriptionNotes
bookingIdstringThe Booking Id that needs to be retrievedrequired

An object containing booking information and room details.

NameTypeDescription
bookingIdstringThe booking ID.
clientReferencestringThe client reference.
statusstringThe booking status.
hotelConfirmationCodestringThe hotel confirmation code.
checkinstringThe check-in date.
checkoutstringThe check-out date.
hotelobjectAn object containing hotel details.
bookedRoomsarrayAn array of booked room objects.
        roomTypeobjectAn object containing room type details.
        adultsnumberThe number of adults.
        childrennumberThe number of children.
        rateobjectAn object containing rate details.
               maxOccupancynumberThe maximum occupancy.
               boardTypestringThe board type.
               boardNamestringThe board name.
               retailRateobjectAn object containing the retail rate information, including total price.
guestInfoobjectAn object containing guest information.
createdAtstringThe creation date of the booking.
cancellationPoliciesobjectAn object containing cancellation policy details.
        cancelPolicyInfosObjectAn array of cancellation policy info objects containing information about cancellation time, amount, and type.
        hotelRemarksArrayAn array of hotel remarks.
        refundableTagstringThe tag indicating if the rate is refundable or non-refundable.
currencystringThe currency code.
pricenumberThe price of the booking.

Booking cancel


The cancelBooking function is used to request a cancellation of an existing confirmed booking. Cancellation policies and conditions will be used to determine the success of the cancellation. For example a booking with non-refundable (NRFN) tag or a booking with a cancellation policy that was requested past the cancellation date will not be able to cancel the confirmed booking.

const bookingId = "K8Hvb-85O";
const result = await liteApi.cancelBooking(bookingId);
NameTypeDescriptionNotes
bookingIdstringThe booking Id of the booking you would like to cancel.required
NameTypeDescription
bookingIdstringThe booking ID.
statusstringThe booking status.
cancellation_feenumberThe cancellation fee.
refund_amountnumberThe refund amount.
currencystringThe currency of the booking.

Vouchers

LiteAPI provides straightforward access to voucher details, including codes and discounts, along with current loyalty program status and cashback rates.

Retrieve vouchers

The getVouchers function retrieves a list of all available vouchers. This endpoint provides details such as the voucher code, discount type and value, validity period, and other relevant information.

const result = await liteApi.getVouchers();

This function does not need any additional parameters.

An object containing the following properties: name | Type | Description ------|------|------------ status | string | Status of the operation. data | array | List of available vouchers.

Voucher Details

The getVoucherById function retrieves details of a specific voucher by its ID. This includes the voucher code, discount details, usage limits, and more.

const voucherID = "your_voucher_id";
const result = await liteApi.getVoucherById(voucherID);
NameTypeDescriptionNotes
voucherIDstringThe unique ID of the voucher.required

An object containing the following properties: name | Type | Description ------|------|------------ status | string | Status of the operation. data | object | Details of the specific voucher.

Create voucher

Create a new voucher with the specified details, including the voucher code, discount type, value, and validity period. This voucher can then be used by customers.

const result = await liteApi.CreateVoucher ({voucher_code: "em8d5d7l", 
                                             discount_type: "percentage", 
                                             discount_value: 12,
                                             minimum_spend: 60, 
                                             maximum_discount_amount: 20, 
                                             currency: "USD", 
                                             validity_start: "2024-06-03", 
                                             validity_end: "2024-07-30", 
                                             usages_limit: 10, 
                                             status: "active"});
NameTypeDescriptionNotes
voucherCodestringThe unique code for the new voucher.required
discountTypestringType of discount, such as percentage.required
discountValuenumberValue of the discount applied by the voucher.required
minimumSpendnumberMinimum rate to apply the discount voucher in the voucher currency.required
maximumDiscountAmountnumberMaximum discount amount that can be applied using the voucher in voucher currency.required
currencystringCurrency in which the discount is offered.required
validityStartdateDate from which the voucher becomes valid.required
validityEnddateDate until which the voucher remains valid.required
usagesLimitnumberMaximum number of times the voucher can be redeemed.required
StatusstringThe unique code for the new voucher.required

An object containing the following properties: name | Type | Description ------------|------------|------------ message | string | Voucher created successfully.

Update Voucher

Update the details of an existing voucher, including the voucher code, discount value, validity period, and more.

const result = await liteApi.UpdateVoucher('68',{voucher_code: "em8d5d7l", 
                                                 discount_type: "percentage", 
                                                 discount_value: 12,
                                                 minimum_spend: 60, 
                                                 maximum_discount_amount: 20, 
                                                 currency: "USD", 
                                                 validity_start: "2024-06-03", 
                                                 validity_end: "2024-07-30", 
                                                 usages_limit: 10, 
                                                 status: "active"});
NameTypeDescriptionNotes
idnumberUnique identifier of the voucher to update.required
voucherCodestringThe unique code for the new voucher.required
discountTypestringType of discount, such as percentage.required
discountValuenumberValue of the discount applied by the voucher.required
minimumSpendnumberMinimum rate to apply the discount voucher in the voucher currency.required
maximumDiscountAmountnumberMaximum discount amount that can be applied using the voucher in voucher currency.required
currencystringCurrency of the discount.required
validityStartdateUpdated start date of the voucher's validity.required
validityEnddateUpdated end date of the voucher's validity.required
usagesLimitnumberUpdated usage limit for the voucher.required
StatusstringUpdated status of the voucher (e.g., active, inactive).required

An object containing the following properties: name | Type | Description ------------|------------|------------ message | string | Voucher updated successfully.

Update Voucher status

Update the status of a voucher, typically to activate or deactivate it.

const result = await liteApi.UpdateVoucherStatus('68', {status: "inactive"});
NameTypeDescriptionNotes
idnumberUnique identifier of the voucher for which the status is being updated.required
StatusstringNew status of the voucher.required

An object containing the following properties: name | Type | Description ------------|------------|------------ message | string | Voucher status updated successfully.

Loyalty

Loyalty Program

The getLoyalty function retrieves information about current loyalty program settings, including status and cashback rates.

const result = await liteApi.getLoyalty();

This function does not need any additional parameters.

An object containing the following properties: name | Type | Description ------|------|------------ status | string | Status of the operation. data | object | Details of the loyalty program.

Enable loyalty program

Once enable the loyalty program with specified status enabled/disabled and cashback rate (e.g. 0.03 = 3% cashback).

const result = await liteApi.EnableLoyalty({status: "disabled", cashbackRate: 0.03 });
NameTypeDescriptionNotes
StatusstringLoyalty program status, either enabled or disabled.required
cashbackRatefloatCashback rate in percentage, e.g. 0.1 = 10%required

An object containing the following properties: name | Type | Description -----------|------------|------------ status | string | Status of the operation. data | object | Details of the loyalty program.

Update loyalty program

Updates the loyalty program settings, including status and cashback rates.

const result = await liteApi.UpdateLoyalty({status: "disabled", cashbackRate: 0.03 });
NameTypeDescriptionNotes
StatusstringLoyalty program status, either enabled or disabled.required
cashbackRatefloatCashback rate in percentage, e.g. 0.1 = 10%.required

An object containing the following properties: name | Type | Description -----------|------------|------------ status | string | Status of the operation. data | object | Details of the loyalty program.

Fetch specific guest

Fetches detailed information about a guest, including personal data, loyalty points, and booking history.

const result = await liteApi.getGuestsIds(8);
NameTypeDescriptionNotes
guestIdnumberNumeric ID of the guest to fetch.required

An object containing the following properties: name | Type | Description -----------|------------|------------ status | string | Status of the operation. data | object | Details of specific guest.

Fetch guest's bookings

Retrieves a list of all bookings associated with a specific guest, including details about the points earned and cashback applied for each booking.

const result = await liteApi.getGuestsBokings(8);
NameTypeDescriptionNotes
guestIdnumberNumeric ID of the guest to fetch.required

An object containing the following properties: name | Type | Description -----------|------------|------------ status | string | Status of the operation. data | object | Details of guest's bookings.

Analytics

Retrieve weekly analytics

Fetch weekly analytics data for the specified date range.

const result = await liteApi.RetrieveWeeklyAanalytics( {from: "2024-01-01", to: "2024-01-07"});
NameTypeDescriptionNotes
fromdateStart date for the analytics data YYYY-MM-DD (ISO 8601).required
todateStart date for the analytics data YYYY-MM-DD (ISO 8601).required

An object containing the following properties: name | Type | Description -----------|------------|------------ status | string | Status of the operation. data | object | Details of weekly analytics.

Retrieve detailed analytics report

Fetch a detailed analytics report for the specified date range.

const result = await liteApi.RetrieveAanalyticsReport( {from: "2024-01-01", to: "2024-01-07"});
NameTypeDescriptionNotes
fromdateStart date for the analytics data YYYY-MM-DD (ISO 8601).required
todateStart date for the analytics data YYYY-MM-DD (ISO 8601).required

An object containing the following properties: name | Type | Description -----------|------------|------------ status | string | Status of the operation. data | object | Details of analytics report.

Retrieve market analytics

Fetch market analytics data for the specified date range.

const result = await liteApi.RetrieveMarketAanalytics ( {from: "2024-01-01", to: "2024-01-07"});
NameTypeDescriptionNotes
fromdateStart date for the analytics data YYYY-MM-DD (ISO 8601).required
todateStart date for the analytics data YYYY-MM-DD (ISO 8601).required

An object containing the following properties: name | Type | Description -----------|------------|------------ status | string | Status of the operation. data | object | Details of market analytics.

Most booked hotels

Fetch hotel analytics data for most booked hotels the specified date range.

const result = await liteApi.RetrieveMostBookedHotels( {from: "2024-01-01", to: "2024-01-07"});
NameTypeDescriptionNotes
fromdateStart date for the analytics data YYYY-MM-DD (ISO 8601).required
todateStart date for the analytics data YYYY-MM-DD (ISO 8601).required

An object containing the following properties: name | Type | Description -----------|------------|------------ status | string | Status of the operation. data | object | Details of Most booked hotels.

4.3.1

6 months ago

4.3.0

9 months ago

3.2.0

10 months ago

4.1.0

9 months ago

4.0.0

10 months ago

4.2.0

9 months ago

3.1.0

11 months ago

3.0.4

1 year ago

3.0.3

1 year ago

3.0.2

1 year ago

3.0.1

1 year ago

3.0.0

1 year ago