Cancel Booking

How to use the Cancel Booking function to cancel bookings through the Partner-API

Overview

The Cancel Booking function enables you to cancel existing bookings via the Partner-API. This guide provides parameter details for booking cancellation within your application.

Endpoints Available

MethodEndpointDescription
DELETEv2023.07.31/booking/{bookingId}Use this endpoint to cancel a booking

Path Parameters

Path ParameterRequired / OptionalDescription
{bookingId}RequiredThe unique identifier for the booking to cancel

Response Definition

Response ItemDescriptionData Type
"booking_id"The unique identifier for the canceled bookingint
"inventory_id"The unique identifier for the unit associated with the canceled bookingint
"type"Indicates the status type of the booking, which is "CANCELLED" in this casestring
"ip_address"The IP address from which the cancellation request originatedstring

Sample Request

curl --request DELETE \
     --url https://api.ciiruspartners.com/v2023.07.31/booking/38418881 \
     --header 'accept: application/json'

Sample Response

{
    "booking_id": 38418881,
    "inventory_id": 219264,
    "type": "CANCELLED",
    "ip_address": "9.8.8.7"
}