Skip to main content

Update Hotel

Mutation Overviewโ€‹

The updateHotelSetUp allows you to update a configuration from a hotel already added in a specific client-seller relation in Inventory. The returned fields include:

  • id
  • hotelCode
  • contextCode
  • active
  • sendNotification
  • emailNotification
  • emailNotificationCc
  • emailNotificationSupport

1. Criteriaโ€‹

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

Mandatory Inputโ€‹

  • clientCode
  • supplierCode
  • hotelCode

Optional Inputโ€‹

  • contextCode
  • active
  • sendNotification
  • emailNotification
  • emailNotificationCc
  • emailNotificationSupport

2. Settingsโ€‹

To update an existing hotel setup, specify the necessary fields while ensuring that the clientCode, supplierCode, and hotelCode are correctly associated with the targeted hotel configuration.

Response Considerationsโ€‹

The mutation returns the updated hotel setup along with success status and possible advise messages.

HotelsSetupRs (OBJECT)โ€‹

  • hotels (InventoryHotelSetup) - A collection of updated hotels.
    • id (Int) - Unique identifier.
    • hotelCode (String) - Associated hotel code.
    • contextCode (String) - Context code for the hotel.
    • active (Boolean) - Indicates if the hotel is active.
    • sendNotification (Boolean) - Indicates if booking notifications should be sent.
    • emailNotification (String) - Email addresses for notifications.
    • emailNotificationCc (String) - CC email addresses for notifications.
    • emailNotificationSupport (String) - Support contact emails.
  • success (Boolean) - Indicates if the operation was successful.
  • adviseMessages (AdviseMessage) - Messages related to the operation.

Mutation Inputsโ€‹

InventoryHotelsSetupUpdateInput (INPUT_OBJECT)
Hotel Setup update mutation input

clientCodeย  *ย  (String)

Client code.

supplierCodeย  *ย  (String)

Travelgate Supplier/Channel code.

hotelย  *ย  (InventoryUpdateHotelSetupInput)

Hotel input data.

active(Boolean)

Indicates whether the hotel is active.

sendNotification(Boolean)

Indicates whether booking notifications should be sent for this hotel.

emailNotification(String)

Email addresses for booking notifications related to this hotel.

emailNotificationCc(String)

Email addresses to be copied on booking notifications related to this hotel.

emailNotificationSupport(String)

Email addresses or contact information for support that will be displayed in the email notifications.

hotelCodeย  *ย  (String)

Code associated with the hotel. This is a unique identifier used to specify the hotel.

contextCode(String)

Context code related to the hotel. This can be used to provide additional context or information about the hotel.

Returned Fieldsโ€‹

HotelsSetupRs (OBJECT)
Represents the response object for hotel 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.

hotels(InventoryHotelSetup)

Collection of hotel responses.

idย  *ย  (Int)

Unique identifier of the hotel.

hotelCode(String)

Code associated with the hotel.

contextCode(String)

Context code related to the hotel.

activeย  *ย  (Boolean)

Indicates whether the hotel is active.

sendNotificationย  *ย  (Boolean)

Indicates whether booking notifications should be sent for this hotel.

emailNotification(String)

Email addresses for booking notifications related to this hotel.

emailNotificationCc(String)

Email addresses to be copied on booking notifications related to this hotel.

emailNotificationSupport(String)

Email addresses or contact information for support that will be displayed in the email notifications.

successย  *ย  (Boolean)

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

Examplesโ€‹

Update the configuration from a Hotelโ€‹