x
D E M İ R C O D E

Cancel Booking Request

The Cancel API allows you to cancel an existing booking. For multi-room bookings, you can choose to cancel each room individually or the entire booking. Additionally, you can retrieve the cancellation status and details from the supplier.

Cancel Booking Request

Method URL
POST https://das.hotel.demircode.net/HotelAPI/cancel

Cancel Booking Elements

Element Format Description Required
user_id String Specifies the username. REQUIRED
user_password String Specifies the password. REQUIRED
access String Used to access the website. REQUIRED
ip_address String Retrieves the IP address of the system from which the website is accessed. REQUIRED
supplierConfirmationNum String Confirmation number received from the API for the booking. This information can be obtained from the Book API's response. REQUIRED
reference String Reference number received from the API for the booking. REQUIRED

Sample Cancel Request

{
  "user_id": "<user_id>",
  "user_password": "<user_password>",
  "access": "Test",
  "ip_address": "<ip_address>",
  "supplierConfirmationNum": "HTL-ATE-205850",
  "referenceNum":"212"
}
        

Sample Cancel Response

{
  "status": "CANCELLED",
  "cancelReferenceNum": "CNCL-2202",
  "message": "Booking has been cancelled successfully having supplierConfirmationNum as HTL-ATE-205850"
}
        

Rezervasyon İptal İsteği

İptal API'si, mevcut bir rezervasyonu iptal etmenize olanak tanır. Çok odalı rezervasyonlar için, her odayı ayrı ayrı veya tüm rezervasyonu iptal etmeyi tercih edebilirsiniz. Ayrıca, iptal durumu ve detaylarını tedarikçiden alabilirsiniz.

Rezervasyon İptal İsteği

Yöntem URL
POST https://das.hotel.demircode.net/HotelAPI/cancel

Rezervasyon İptal Elemanları

Eleman Format Açıklama Gerekli
user_id String Kullanıcı adını belirtir. GEREKLİ
user_password String Şifreyi belirtir. GEREKLİ
access String Web sitesine erişim için kullanılır. GEREKLİ
ip_address String Web sitesine erişilen sistemin IP adresini alır. GEREKLİ
supplierConfirmationNum String Rezervasyon için API'den alınan onay numarası. Bu bilgi Rezervasyon API'sinin yanıtından alınabilir. GEREKLİ
reference String Rezervasyon için API'den alınan referans numarası. GEREKLİ

Örnek İptal Talebi

{
  "user_id": "<user_id>",
  "user_password": "<user_password>",
  "access": "Test",
  "ip_address": "<ip_address>",
  "supplierConfirmationNum": "HTL-ATE-205850",
  "referenceNum":"212"
}
        

Örnek İptal Yanıtı

{
  "status": "CANCELLED",
  "cancelReferenceNum": "CNCL-2202",
  "message": "Booking has been cancelled successfully having supplierConfirmationNum as HTL-ATE-205850"
}
        

Yeni nesil Flight API900+ Havayolu Markası