Roomability Guest API
  1. Reservation
Roomability Guest API
  • Introduction
  • Authentication
  • Errors
  • Booking Flow
  • Reservation
    • Add
      POST
    • Availability
      POST
    • Cancel
      POST
    • Booking Ref
      GET
  • Country
    • Get Countries List
      GET
  • State
    • Get State List
      GET
  • RoomType
    • Get Room Types
      GET
    • Get Room Detail
      GET
  • Guest
    • Detail
      GET
  • Term
    • Detail
      GET
  • Privacy
    • Detail
      GET
  • Payment Method
    • Active List
      GET
  • Paystack
    • Verify
      GET
    • Initialize
      POST
  • Hotel
    • Detail
      GET
    • Hotel Rule
      GET
  • PayGateway
    • Detail
  • CancelPolicy
    • Detail
  • Search List
    GET
  • Phone Code List
    GET
  1. Reservation

Cancel

POST
https://guestapi.roomability.io/Reservation/Cancel
Last modified:2026-03-13 11:13:50

Reservation Cancellation#

This API endpoint is used to cancel a reservation.

Request#

Method: POST
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-13 11:13:50
Previous
Availability
Next
Booking Ref
Built with