---
updatedAt: 2026-10-21T07:14:53.000Z
agentTools:
  projectIndex: https://volt-docs.travclan.com/llms.txt
---

# Book Hotel

This API is used to finalize and book a specified itinerary by providing a trace ID.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "VoltLite API",
    "description": "### Overview\nLightweight, efficient, and fast — the essence of Volt in minimal form.\n\n### Copyright\n© Copyright 2024, TravClan  \nThis document contains confidential material and is the property and copyright of Travclan.  \nNo part of this document may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, electronic, mechanical, chemical, photocopying, recording, or otherwise without the prior written permission of Travclan.",
    "version": "1.1.1",
    "contact": {
      "name": "Volt API Support",
      "url": "https://volt.travclan.com/contact",
      "email": "apisupport@travclan.com"
    }
  },
  "servers": [
    {
      "url": "https://hotel-volt-api-sandbox.travclan.com",
      "description": "Volt Lite SandBox"
    },
    {
      "url": "https://hotel-volt-tp.travclan.com",
      "description": "Volt Lite Production"
    },
    {
      "url": "https://hotel-api-sandbox.travclan.com",
      "description": "Helper API's Sandbox"
    },
    {
      "url": "https://hotels-v1-tp.travclan.com",
      "description": "Helper API's Production"
    }
  ],
  "tags": [
    {
      "name": "Booking",
      "description": "APIs related to hotel booking."
    }
  ],
  "paths": {
    "/api/v1/book": {
      "post": {
        "operationId": "voltLiteBookHotel",
        "tags": [
          "Booking"
        ],
        "summary": "Book Hotel",
        "description": "This API is used to finalize and book a specified itinerary by providing a trace ID.",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Bearer token for authenticating the request.",
            "example": "Bearer {{access_token}}"
          },
          {
            "name": "source",
            "in": "header",
            "required": true,
            "description": "Specifies the source of the request (End User Source). Available choices: website, android, mweb, ios, mobile.",
            "schema": {
              "type": "string",
              "enum": [
                "website",
                "android",
                "mweb",
                "ios"
              ],
              "default": "website"
            },
            "example": "website"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "optionId": {
                    "type": "string",
                    "description": "Unique identifier for the option."
                  },
                  "traceId": {
                    "type": "string",
                    "description": "Trace ID for tracking the booking flow (Required)."
                  },
                  "specialRequests": {
                    "type": "array",
                    "nullable": true,
                    "description": "Any special requests from the guest (Optional).",
                    "items": {
                      "properties": {
                        "remarks": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  },
                  "hotelId": {
                    "type": "string",
                    "nullable": true,
                    "description": "Hotel ID if applicable; can be null (Optional)."
                  },
                  "roomDetails": {
                    "type": "array",
                    "minItems": 1,
                    "description": "List of rooms being booked. At least one room is required.",
                    "items": {
                      "type": "object",
                      "required": [
                        "roomId",
                        "guests"
                      ],
                      "properties": {
                        "roomId": {
                          "type": "string",
                          "description": "Unique identifier for the room (Required)."
                        },
                        "guests": {
                          "type": "array",
                          "minItems": 1,
                          "description": "List of guests staying in the room. At least one must be the lead guest.",
                          "items": {
                            "type": "object",
                            "required": [
                              "title",
                              "firstName",
                              "lastName",
                              "isLeadGuest",
                              "type"
                            ],
                            "properties": {
                              "title": {
                                "type": "string",
                                "description": "Guest's title (e.g., Mr, Mrs, Ms)."
                              },
                              "firstName": {
                                "type": "string",
                                "description": "Guest's first name."
                              },
                              "middleName": {
                                "type": "string",
                                "nullable": true,
                                "description": "Guest's middle name (Optional)."
                              },
                              "lastName": {
                                "type": "string",
                                "description": "Guest's last name. (no of chars >=2)"
                              },
                              "isLeadGuest": {
                                "type": "boolean",
                                "description": "Indicates if the guest is the lead guest."
                              },
                              "type": {
                                "type": "string",
                                "description": "Type of guest (e.g., adult, child)."
                              },
                              "email": {
                                "type": "string",
                                "format": "email",
                                "nullable": true,
                                "description": "Email address of the guest (Required for lead guest)."
                              },
                              "isdCode": {
                                "type": "string",
                                "nullable": true,
                                "description": "ISD code for the contact number (Required for lead guest)."
                              },
                              "contactNumber": {
                                "type": "string",
                                "nullable": true,
                                "description": "Contact number of the guest (Required for lead guest)."
                              },
                              "age": {
                                "type": "integer",
                                "nullable": true,
                                "description": "Age of the guest (Optional)."
                              },
                              "passportNumber": {
                                "type": "string",
                                "nullable": true,
                                "description": "Guest's passport number (Optional)."
                              },
                              "passportExpiry": {
                                "type": "string",
                                "format": "date",
                                "nullable": true,
                                "description": "Passport expiry date (Optional)."
                              },
                              "passportIssue": {
                                "type": "string",
                                "format": "date",
                                "nullable": true,
                                "description": "Passport issue date (Optional)."
                              },
                              "passportFrontImage": {
                                "type": "string",
                                "format": "uri",
                                "nullable": true,
                                "description": "URL or base64 of front passport image (Optional)."
                              },
                              "passportBackImage": {
                                "type": "string",
                                "format": "uri",
                                "nullable": true,
                                "description": "URL or base64 of back passport image (Optional)."
                              },
                              "panCardNumber": {
                                "type": "string",
                                "nullable": true,
                                "description": "PAN card number of the guest (Optional)."
                              },
                              "panCardName": {
                                "type": "string",
                                "nullable": true,
                                "description": "Name as printed on the PAN card (Optional)."
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                },
                "required": [
                  "optionId",
                  "traceId",
                  "roomDetails"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Booking confirmation details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "token": {
                      "type": "string",
                      "description": "A unique token for the booking request, used for tracking."
                    },
                    "bookingStatus": {
                      "type": "string",
                      "description": "The current status of the booking. Possible Values `Confirmed`,`Pending`,`Failed`"
                    },
                    "bookingId": {
                      "type": "string",
                      "description": "Unique identifier for the booking."
                    },
                    "providerConfirmationNumber": {
                      "type": "string",
                      "description": "Confirmation number provided by the booking provider."
                    },
                    "hotelConfirmationNumber": {
                      "type": "string",
                      "description": "Confirmation number provided by the hotel."
                    },
                    "roomConfirmation": {
                      "type": "array",
                      "description": "Details of each room booked as part of the itinerary.",
                      "items": {
                        "type": "object",
                        "properties": {
                          "rateId": {
                            "type": "string",
                            "description": "Unique identifier for the rate plan used for the booking."
                          },
                          "roomId": {
                            "type": "string",
                            "description": "Unique identifier for the room that was booked."
                          },
                          "providerConfirmationNumber": {
                            "type": "string",
                            "description": "Confirmation number provided by the booking provider for the room."
                          },
                          "hotelConfirmationNumber": {
                            "type": "string",
                            "description": "Confirmation number provided by the hotel for the room."
                          },
                          "bookingStatus": {
                            "type": "string",
                            "description": "The status of the room booking (e.g., 'Confirmed')."
                          }
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "OK": {
                    "summary": "OK",
                    "value": "{\n  'message': 'OK',\n  'error': False,\n  'code': 200,\n  'results': [\n    {\n      'provider': 1,\n      'traceId': '240720j1-y028-40ot-iae7-62e5ed3e32f5',\n      'itineraryCode': 'itrggar8d',\n      'data': [\n        {\n          'status': 'Confirmed',\n          'bookingRefId': 'tar3nwa',\n          'providerConfirmationNumber': '2107200420',\n          'roomConfirmation': [\n            {\n              'rateId': '6lmay043-def5-4a1a-8e2d-d23238e06de2',\n              'roomId': '0711971804',\n              'providerConfirmationNumber': 'HTL-YAN-1085938305',\n              'bookingStatus': 'Confirmed'\n            },\n            {\n              'rateId': '8a3e47b3-62ae-1994-a989-2a10e81eb500',\n              'roomId': '0711971804',\n              'providerConfirmationNumber': 'HTL-YAN-1085938295',\n              'bookingStatus': 'Confirmed'\n            }\n          ]\n        }\n      ]\n    }\n  ]\n}"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. One or more request parameters are invalid or missing."
          },
          "401": {
            "description": "Unauthorized - Invalid or missing access token."
          },
          "404": {
            "description": "Not Found. The requested resource could not be located."
          },
          "422": {
            "description": "Bad Request. Client Side Error in Request Body."
          }
        }
      }
    }
  }
}
```