Skip to main content

Overview

Hotel-X offers a versatile feature: customizable Plugins! These plugins enable you to seamlessly integrate your unique business logic, eliminating the need for complex implementations. With Plugins, you can easily fine-tune your requests and responses as your business expands, simplifying the management of responses from various suppliers. For instance, you can customize currency exchange, establish blacklists for hotels based on different criteria, or exclusively receive the cheapest option for each meal plan.

๐Ÿ“„๏ธ Currency Converter

The Currency Converter plugin enables the application of currency conversion to all the prices within a single option. This plugin takes an option and a currency as input and provides the same option with currency conversion applied to all the prices. It obtains rate information from a file located on our FTP server. It's important to note that the existence of this file on the FTP server and its compliance with specific requirements are mandatory. Otherwise, an error will be returned.

To utilize these plugins, simply add and configure the one that suits your needs in your requests. In some cases, you may be required to upload a specific file to your FTP account, which we provide.

note

There's an option to load default plugins into our database. To explore this, kindly contact our dedicated Customer Care team to initiate the process by opening a ticket. These default plugins will automatically execute in all your Queries and Mutations when you haven't specified any filters. Enjoy the convenience!

FTP Filesโ€‹

Upon receiving your Onboarding Welcome Pack, you will be granted access credentials to the FTP server. In the event that you need assistance or have not received your credentials, kindly open a ticket to our Customer Care team to obtain your FTP credentials and initiate your journey.

FTP Endpointโ€‹

ftp://ftp.xmltravelgate.com

Directory Formatโ€‹

The structure of the directory should be in the below format, all files should be inside this directory:

ftp.xmltravelgate.com

๐Ÿ“F[Folder code]_[Unique code]
ย ย ย ย  ๐Ÿ“HotelX _[Unique code]

F[Folder code]_[Unique code]

  • Folder code: corresponds to the folder number.
  • Unique code: corresponds to the folder unique code in our system.

HotelX_[Unique code]

  • Unique code: corresponds to the Hotel-X unique code in our system.

Example:

ftp.xmltravelgate.com

๐Ÿ“F0_1781
ย ย ย ย  ๐Ÿ“HotelX_1790

Upload FTP Dataโ€‹

To upload an FTP file, follow these simple steps:

  1. Upload the File:

    • Once you've decided on the plugin you want to use, and if it's necessary, simply upload the required CSV file.
  2. Wait for Processing:

    • Once you've uploaded the file, our system will take care of the rest.
    • We'll automatically add the "_processed" tagline to the end of the file name when the processing is complete.

    For example, if you uploaded a file for hotel mapping plugin with the name:

    BuyerContext_SupplierContext_hotel_map_.csv

    After our system processes it, it will look like this:

    BuyerContext_SupplierContext_hotel_map_processed.csv

Update FTP Dataโ€‹

To update an FTP file, follow these simple steps:

  1. If you need to update the information in the file, simply delete the old file.
  2. Upload the new file with the updated information, using the correct name. You don't need to add the "processed" tagline to the name; we'll take care of that on our end.

That's it! Updating FTP files is as easy as that.

Delete FTP Dataโ€‹

To delete all the information stored in our system, follow these straightforward steps:

  1. Prepare an empty file:

    • Create a new file with empty content, including only the headers.
    • Ensure that the file structure, such as column headers, remains intact.
  2. Load the empty file in the FTP folder.

That's it! By replacing the existing data with an empty file containing headers only, you effectively delete all the information previously loaded into our system.

How to Execute a Pluginโ€‹

To execute the plugins, in some cases it is enough to upload the file to the FTP, in other cases you just have to indicate it in the request, and in some cases both actions need to be done, uploading the file to the FTP and indicating it in the request.

In each of the plugins, you will see a section called "Execute plugin in your request", where it will be indicated how to execute that specific plugin.