Delete Hotel
Mutation Overview
The deleteHotelSetUp mutation is designed to remove a specific hotel from a client-seller relation in Inventory. The returned fields include:
successadviseMessages
1. Criteria
When building your mutation, you need to provide the following input fields:
Mandatory Input
clientCodesupplierCodehotelCode
Optional Input
contextCode
2. Settings
To execute the hotel deletion, specify the necessary fields, ensuring that clientCode, supplierCode, and hotelCode correspond to the correct relation in Travelgate.
Response Considerations
The mutation returns a success status along with possible advise messages.
HotelsSetupRs (OBJECT)
success(Boolean) - Indicates whether the operation was successful.adviseMessages(AdviseMessage) - Messages related to the operation.
Mutation Inputs
InventoryHotelSetupDeleteInput (INPUT_OBJECT)
Hotel setup delete input data
Hotel setup delete input data
clientCode * (String)
Client code.
supplierCode * (String)
Travelgate Supplier/Channel code.
hotelCode * (String)
Hotel input data.
contextCode(String)
Context code related to the hotel.
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.