Skip to main content

Rooms Master

Query Overviewโ€‹

The roomsMaster query returns a list of all the hotel room masters created in Inventory. The returned fields include:

  • id
  • code
  • name

1. Criteriaโ€‹

This query offers versatility, with an optional field codes that can be filled with the Room masters' codes to retrieve. This allows for a tailored query, ensuring that only relevant data is retrieved.

Mandatory Inputโ€‹

  • clientCode

Optional Inputโ€‹

  • codes
note

Your ClientCode can be retrieved from any Travelgate access with a Channel Manager.
See My Connections and click "Get form data" in the selected access. The code in Password is equivalent to the ClientCode.

2. Settingsโ€‹

To retrieve room masters, provide the clientCode and, optionally, specify codes to filter by specific room types.

Response Considerationsโ€‹

The query returns a collection of room masters along with a success status and possible advise messages.

RoomsRs (OBJECT)โ€‹

  • rooms (InventoryRoom) - A collection of retrieved rooms.
    • id (Int) - Unique identifier.
    • code (String) - Room code.
    • name (String) - Room name.
  • success (Boolean) - Indicates if the operation was successful.
  • adviseMessages (AdviseMessage) - Messages related to the operation.

Query Inputsโ€‹

InventoryRoomsMasterFilterInput (INPUT_OBJECT)
Rooms master filter input.

codes(String)

Room codes of the rooms to retrieve.

clientCodeย  *ย  (String)

Client code.

Returned Fieldsโ€‹

RoomsRs (OBJECT)
Represents the response data for retrieving rooms.

adviseMessages(AdviseMessage)

Collection of advise messages.

codeย  *ย  (ID)

AM code: The following codes can be returned:

descriptionย  *ย  (String)

Error description

levelย  *ย  (AdviseMessageLevel)

Indicates the level of importance of the message. Possible values: ERROR, WARN, INFO. Possible values:

  • WARN: Warning message.
  • ERROR: Error message.
  • INFO: Info message.
external(ExternalMessage)

Specify the external message.

code(String)

External code.

messageย  *ย  (String)

External message.

correlationIDย  *ย  (ID)

Identifier to investigate the cause of the error.

rooms(InventoryRoom)

Collection of rooms.

idย  *ย  (Int)

Unique identifier for the room.

code(String)

Code of the room.

name(String)

Name of the room.

successย  *ย  (Boolean)

Indicates whether the response was successful based on the absence of advise messages.

Examplesโ€‹

Retrieve full list of Room mastersโ€‹

Retrieve a specific list of Room masterโ€‹

For more personalized results, filter specific Room masters based on your interests.