Roomability Guest API
Commerce & Guest API Services
Hotel Management System
Commerce & Guest API Services
Hotel Management System
  1. Reservation
Roomability Guest API
  • Introduction
  • Authentication
  • Responses
  • Roomability Guest API
    • PayGateway
      • Detail
    • CancelPolicy
      • Detail
    • Paystack
      • Verify
      • Initialize
    • Reservation
      • Add
        POST
      • Availability
        POST
      • Cancel
        POST
      • Booking Ref
        GET
    • Country
      • GetSelectList
    • RoomType
      • DetailList
      • Detail
    • Term
      • Detail
    • State
      • GetSelectList
    • Privacy
      • Detail
    • Guest
      • Detail
    • Payment Method
      • Active List
    • Hotel
      • Detail
      • Hotel Rule
    • GetHotel List
      GET
    • Contact Page
      POST
    • Search List
      GET
    • Countries
      GET
    • Phone Code List
      GET
  • Retails & Ecommece Guest Api
    • Products
    • Users
    • Carts
    • Orders
  • Loyality Endpoint Api
    • Doors
Commerce & Guest API Services
Hotel Management System
Commerce & Guest API Services
Hotel Management System
  1. Reservation

Cancel

POST
https://guestapi.roomability.io/Reservation/Cancel
Last modified:2026-03-12 08:08:55

Reservation Cancellation#

This API endpoint is used to cancel a reservation.

Request#

Method: POST
Base URL: {{baseUrl}}
Endpoint: /Reservation/Cancel
Request Body#
bookingRef (string): The reference code of the booking to be cancelled.
lastname (string): The last name of the guest associated with the booking.
Example:
{
  "bookingRef": "MYNA5W",
  "lastname": "Guests"
}

Response#

The response for this request is in JSON format and follows the schema below:
errorCode (number): A code indicating the result of the cancellation operation.
errorMessage (string): A message providing additional information about the cancellation result.
{
  "errorCode": {
    "type": "number"
  },
  "errorMessage": {
    "type": "string"
  }
}
Example Response:
{
  "errorCode": 0,
  "errorMessage": "Reservation canceled successfully."
}

Request

Header Params

Body Params application/json

Examples

Responses

🟢200
application/json
Body

Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://guestapi.roomability.io/Reservation/Cancel' \
--header 'X-API-Key: {{api-key}}' \
--header 'Content-Type: application/json' \
--data-raw '{
    "bookingRef": "MYNA5W",
    "lastname": "Guests"
}'
Response Response Example
{
    "errorCode": 0,
    "errorMessage": "Reservation canceled successfully."
}
Modified at 2026-03-12 08:08:55
Previous
Availability
Next
Booking Ref
Built with