Create Hotel
Mutation Overviewโ
The createHotelSetUp mutation allows you to add a new hotel, with its configuration, to a specific client-seller relation in Inventory. The returned fields include:
idhotelCodecontextCodeactivesendNotificationemailNotificationemailNotificationCcemailNotificationSupport
1. Criteriaโ
When building your mutation, you need to provide the following input fields:
Mandatory Inputโ
clientCodesupplierCodehotelCodeactivesendNotification
Optional Inputโ
contextCodeemailNotificationemailNotificationCcemailNotificationSupport
2. Settingsโ
To configure the hotel setup, specify the necessary fields, ensuring the clientCode and supplierCode correspond to the appropriate relation in Travelgate.
Response Considerationsโ
The mutation returns the created hotel setup along with success status and possible advise messages.
HotelsSetupRs (OBJECT)โ
hotels(InventoryHotelSetup) - A collection of created 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โ
InventoryHotelsSetupCreateInput (INPUT_OBJECT)
Hotel Setup create mutation input
Hotel Setup create mutation input
clientCodeย *ย (String)
Client code.
supplierCodeย *ย (String)
Travelgate Supplier/Channel code.
hotelย *ย (InventoryCreateHotelSetupInput)
Hotel input data. activeย *ย (Boolean) Gets or sets a value indicating whether the hotel is active. sendNotificationย *ย (Boolean) Gets or sets a value indicating whether booking notifications should be sent for this hotel. Gets or sets the email addresses for booking notifications related to this hotel. Gets or sets the email addresses to be copied on booking notifications related to this hotel. Gets or sets the email addresses or contact information for support that will be displayed in the email notifications. hotelCodeย *ย (String) Gets or sets the code associated with the hotel. Gets or sets the context code related to the hotel.emailNotification(String)
emailNotificationCc(String)
emailNotificationSupport(String)
contextCode(String)
Returned Fieldsโ
HotelsSetupRs (OBJECT)
Represents the response object for hotel setup operations.
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: 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)
hotels(InventoryHotelSetup)
Collection of hotel responses. idย *ย (Int) Unique identifier of the hotel. Code associated with the hotel. 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. Email addresses for booking notifications related to this hotel. Email addresses to be copied on booking notifications related to this hotel. Email addresses or contact information for support that will be displayed in the email notifications.hotelCode(String)
contextCode(String)
emailNotification(String)
emailNotificationCc(String)
emailNotificationSupport(String)
successย *ย (Boolean)
Indicates whether the operation was successful based on the absence of advise messages.