Skip to main content

Rooms

Query Overviewโ€‹

The roomsSetUp query returns the rooms added to a hotel rate in Inventory. The returned fields include:

  • code
  • master
    • id
    • code
    • name
  • active
  • externalCode
  • standard
  • uses
    • numberOfGuests
    • minAge
    • maxAge
    • paxType

1. Criteriaโ€‹

When building your query, you need to provide the following input fields:

Mandatory Inputโ€‹

  • clientCode
  • supplierCode
  • hotelCode
  • rateCode

Optional Inputโ€‹

  • contextCode
  • roomCodes

2. Settingsโ€‹

To retrieve room details, ensure that all mandatory fields are properly provided, and associate the query with the correct hotel and rate.

Response Considerationsโ€‹

The query returns the room setup details along with success status and possible advise messages.

RoomsSetUpRs (OBJECT)โ€‹

  • rooms (InventoryRoomSetUp) - A collection of retrieved rooms.
    • code (String) - The room code.
    • master (InventoryMasterRoom) - The master room details.
      • id (Int) - The master room ID.
      • code (String) - The master room code.
      • name (String) - The master room name.
    • active (Boolean) - Indicates if the room is active.
    • externalCode (String) - The external code associated with the room.
    • standard (Int) - The standard occupancy of the room.
    • uses (InventoryRoomUse) - The list of guest types allowed in the room.
      • numberOfGuests (Int) - The number of guests allowed.
      • minAge (Int) - The minimum age allowed for guests.
      • maxAge (Int) - The maximum age allowed for guests.
      • paxType (Enum of InventoryPaxType) - The type of guests allowed.
        • Possible values: INFANT, CHILD, ADULT
  • success (Boolean) - Indicates if the operation was successful.
  • adviseMessages (AdviseMessage) - Messages related to the operation.

Query Inputsโ€‹

InventoryRoomsSetupFilterInput (INPUT_OBJECT)
Rooms setup filter input.

hotelCodeย  *ย  (String)

Hotel code of the rooms to retrieve.

clientCodeย  *ย  (String)

Client code.

supplierCodeย  *ย  (String)

Travelgate Supplier/Channel code.

contextCode(String)

Travelgate Supplier/Channel context code.

roomCodes(String)

Room codes.

rateCodeย  *ย  (String)

Room codes.

Returned Fieldsโ€‹

RoomsSetUpRs (OBJECT)
Represents the response object for room setup operations.

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.

rateCode(String)

Rate code associated with the rooms.

rooms(InventoryRoomSetUp)

Collection of room setup responses.

code(String)

Code associated with the room.

master(InventoryMasterRoom)

Master of the room.

idย  *ย  (Int)

Id associated with the room master.

code(String)

Code associated with the room.

name(String)

Name associated with the room.

activeย  *ย  (Boolean)

Indicates whether the room is active.

externalCode(String)

External code associated with the room.

standardย  *ย  (Int)

Standard of the room. Typically the number of guests.

usesย  *ย  (InventoryRoomUse)

List of uses associated with the room.

numberOfGuestsย  *ย  (Int)

Gets or sets the number of guests allowed in the room.

minAgeย  *ย  (Int)

Gets or sets the minimum age allowed for guests in the room.

maxAgeย  *ย  (Int)

Gets or sets the maximum age allowed for guests in the room.

paxTypeย  *ย  (InventoryPaxType)

Gets or sets the type of guests allowed in the room. PaxType Possible values:

  • INFANT: Represents an infant guest.
  • CHILD: Represents a child guest.
  • ADULT: Represents an adult guest.

successย  *ย  (Boolean)

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

Examplesโ€‹

Retrieve all rooms from a rateโ€‹

Retrieve specific rooms from a rateโ€‹