1. Help Center Home
  2. Buying on TravelgateX
  3. Getting started with Hotel-X Buyers API

Hotel-X Credentials

Review your API Key, Clients, Accesses and Contexts.

Hotel-X Credentials

Once you have configured your account, you can access our App and check your Hotel-X credentials and accesses by following this simple guide:


  1. App access: Log in with your credentials here.
  2. Connections: Click on "Connections" in the top menu. Then, click on "API Settings".
  3. API Settings: Your Apikey will be displayed in a yellow box at the top of the page.

Please keep in mind that the Apikey will remain consistent across both test and production environments for all Sellers.


An access refers to the combination of credentials and authentication configuration that allows a Buyer to establish a connection with a Seller. It serves the purpose of distinguishing between different Sellers and filtering different credentials and configurations from the same Seller (e.g., B2B and B2C feeds). You can check this information in My Connections.

For Hotel-X implementation and testing, we recommend using the following accesses:

  • TravelgateX Test Seller (tgx): Access 2 with context HOTELTEST
  • Smyrooms Test: Access 5647 with context LOGITEST

These have already been activated on your account and are ready to use.

How can I obtain my access code from an actual Seller?

To get your access code, simply establish a commercial agreement with the desired Partner and request activation through our website using the Auto-Activations Form.

Please note that it is advisable to avoid making live bookings during the Hotel-X implementation process until your development has been certified by TravelgateX.


A client refers to a party that buys accommodation services through the Hotel-X API implementation. Client codes remain consistent throughout all TravelgateX implementations and they are used to identify the business that is making the request and to confirm that they have a configuration assigned to it.

It is possible to have multiple client codes, for instance, in order to differentiate traffic between B2B and B2C credentials (e.g., client_b2b, client_b2c). As all accesses are compatible with any of your client codes, it is important to use the appropriate one according to your needs. You can find this information in your API Settings.


Context refers to the content codes utilized by both Buyers and Sellers. Each Seller has its own unique context, which may differ between test and production environments. The context includes specific codes for hotels, boards, rooms, etc.

Buyers have the flexibility to either use their own codes or choose content providers. In either case, they can create their own context using our Mapping Plugin. This allows Buyers to align their own context with the Suppliers' context. 

To access the context, simply navigate to the Connections menu and click on "My Connections".

Then, select the Seller and the information will be displayed.

When you activate a new Seller, the context information will be provided to you along with the credentials in the confirmation email.

What is the difference between access and context?💡

The distinction between the two is that an access holds your credentials for a specific connection, while a context is the internal TravelgateX code required to request either the original supplier hotel codes or your own hotel codes (previously mapped and uploaded to our FTP).


Feel free to check our Hotel-X Buyers API Documentation for additional information on Hotel-X credentials.