Skip to main content

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:

  • success
  • adviseMessages

1. Criteriaโ€‹

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

Mandatory Inputโ€‹

  • clientCode
  • supplierCode
  • hotelCode

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

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.

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โ€‹

Delete a Hotelโ€‹