Rooms Master
Query Overviewโ
The roomsMaster query returns a list of all the hotel room masters created in Inventory. The returned fields include:
idcodename
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
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.
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.
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: Specify the external message. External code. messageย  *ย  (String) External message. correlationIDย  *ย  (ID) Identifier to investigate the cause of the error.WARN: Warning message.ERROR: Error message.INFO: Info message.external(ExternalMessage)
code(String)
rooms(InventoryRoom)
Collection of rooms. idย  *ย  (Int) Unique identifier for the room. Code of the room. Name of the room.code(String)
name(String)
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.