---
updatedAt: 2025-09-09T21:11:14.000Z
agentTools:
  projectIndex: https://docs.ciiruspartners.com/v2023.07.31/llms.txt
---

# Cancel booking

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "security": [
    {
      "basicAuth": []
    }
  ],
  "info": {
    "title": "CiiRUS Partner API",
    "version": "2023.07.31"
  },
  "paths": {
    "/booking/{bookingId}": {
      "delete": {
        "summary": "Cancel booking",
        "description": "",
        "responses": {
          "200": {
            "description": "Cancel booking response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CancelBookingResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/bookingId"
          }
        ],
        "tags": [
          "Booking"
        ]
      }
    }
  },
  "servers": [
    {
      "url": "https://api.ciiruspartners.com/v2023.07.31"
    }
  ],
  "components": {
    "parameters": {
      "bookingId": {
        "name": "bookingId",
        "in": "path",
        "description": "Unique Identifier for booking.",
        "required": true,
        "schema": {
          "type": "integer",
          "format": "int32",
          "minimum": 0
        }
      }
    },
    "responses": {
      "BadRequest": {
        "description": "Bad Request response",
        "content": {
          "*/*": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "Unauthorized": {
        "description": "Unauthorized response",
        "content": {
          "*/*": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "Forbidden": {
        "description": "Forbidden response",
        "content": {
          "*/*": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "NotFound": {
        "description": "Not Found response",
        "content": {
          "*/*": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      }
    },
    "securitySchemes": {
      "basicAuth": {
        "type": "http",
        "scheme": "basic"
      }
    },
    "schemas": {
      "Error": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          },
          "message": {
            "type": "string"
          }
        },
        "required": [
          "code",
          "message"
        ]
      },
      "booking_id_alt": {
        "properties": {
          "booking_id": {
            "type": "integer"
          }
        }
      },
      "status_type": {
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "CONFIRMED",
              "CANCELLED",
              "TENTATIVE"
            ]
          }
        }
      },
      "CancelBookingResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/CancelBookingResponseObject"
          },
          {
            "type": "object"
          }
        ]
      },
      "CancelBookingResponseObject": {
        "allOf": [
          {
            "$ref": "#/components/schemas/booking_id_alt"
          },
          {
            "$ref": "#/components/schemas/unit_id"
          },
          {
            "$ref": "#/components/schemas/status_type"
          },
          {
            "$ref": "#/components/schemas/ip_address"
          }
        ],
        "required": [
          "booking_id",
          "unit_id",
          "type",
          "ip_address"
        ]
      },
      "unit_id": {
        "properties": {
          "unit_id": {
            "type": "integer",
            "format": "int32",
            "description": "Unique identifier for inventory"
          }
        }
      },
      "ip_address": {
        "properties": {
          "ip_address": {
            "type": "string"
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```