hotel-api-cancellation-flow

Hotel API 1.7

Cancellation Flow

Path: /api/HotelAPi/CancelHotelAPI

Method Type :Post

This JSON request is used to cancel a hotel booking. It requires a booking reference and a
reason for cancellation

Fields:

  • bookingReference: (string, required)
    • Unique identifier for the booking to be cancelled.
    • Example: “ATS135704”
  • reason: (string, optional but recommended)
    • Explanation for the cancellation.
    • Example: “Test”

Request samples:


{
 "bookingReference": "ATS135704",
 "reason": "Test"
}

Description of CancelAPIResponse Class

This class represents the response structure for a hotel booking cancellation request.

Fields:

  • IsCancel: (bool, default: false)
    • Indicates whether the cancellation was successful
    • true: Booking was successfully cancelled.
    • false: Cancellation failed or was not processed.
  • Error: (string, nullable)
    • Contains an error message if the cancellation fails.
    • null or empty string if the cancellation is successful.
  • cancellationCharge: (Decimal, 0)
    • Cancellation charge
  • currency: (string)
    • Cancellation currency

Successful cancel response


{
    "isCancel": true,
    "error": null,
    "cancellationCharge": 1681.8600,
    "currency": “AED”
}