> ## Documentation Index
> Fetch the complete documentation index at: https://developer.tripedge.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get cancellation details



## OpenAPI

````yaml get /book/precancel/{bookingId}
openapi: 3.0.0
info:
  title: Hotel Booking API
  version: 1.0.0
servers:
  - url: /api
    description: API server
security:
  - ApiKeyAuth: []
paths:
  /book/precancel/{bookingId}:
    get:
      summary: Get cancellation details
      operationId: getCancellationDetails
      parameters:
        - in: path
          name: bookingId
          schema:
            type: string
          required: true
      responses:
        '200':
          description: Cancellation details
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    description: Indicates if the request was successful
                  message:
                    type: string
                    nullable: true
                    description: Response message, null if successful
                  data:
                    type: object
                    properties:
                      cancellationFee:
                        type: number
                    required:
                      - cancellationFee
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: API key for authentication

````