Skip to main content
GET
/
prebook
/
{sessionId}
/
{hotelId}
/
{rateId}
/
{paymentMethod}
Error
A valid request URL is required to generate request examples
{
  "success": true,
  "message": "<string>",
  "data": {
    "search": {
      "destinationId": "<string>",
      "checkIn": "<string>",
      "checkOut": "<string>",
      "rooms": [
        {
          "adults": 123,
          "children": 123,
          "childrenAges": [
            123
          ]
        }
      ]
    },
    "hotel": {
      "id": 123,
      "name": "<string>",
      "stars": 3,
      "address": {
        "address": "<string>",
        "city": "<string>",
        "country": "<string>",
        "countryCode": "<string>"
      },
      "rating": 2.5,
      "reviews": 1,
      "pricePerNight": "<string>",
      "priceChargeable": "<string>",
      "pricePerRoom": "<string>",
      "pricePerRoomPerNight": "<string>",
      "priceBeforeFees": "<string>",
      "priceFees": "<string>",
      "priceDueAtHotel": "<string>",
      "priceInclusive": "<string>",
      "amenities": [
        "<string>"
      ],
      "location": "<string>",
      "images": [
        "<string>"
      ],
      "exclusive": true,
      "type": "<string>",
      "coordinates": [
        123
      ]
    },
    "booking": {
      "lines": [
        {
          "lineText": "<string>",
          "type": "room",
          "amount": "<string>"
        }
      ],
      "pricePerNight": "<string>",
      "priceFees": "<string>",
      "priceDueAtHotel": "<string>",
      "priceInclusive": "<string>",
      "priceChargeable": "<string>",
      "pricePerRoom": "<string>",
      "pricePerRoomPerNight": "<string>",
      "priceBeforeFees": "<string>",
      "currency": "<string>",
      "remarks": "<string>",
      "roomType": "<string>",
      "cancellationPolicy": "<string>",
      "cancellationPolicyDate": "<string>"
    }
  }
}

Authorizations

Authorization
string
header
required

API key for authentication

Path Parameters

sessionId
string<uuid>
required
hotelId
string
required
rateId
string<uuid>
required
paymentMethod
enum<string>
required
Available options:
creditCard,
account

Response

200 - application/json

Pre-booking created

success
boolean

Indicates if the request was successful

message
string | null

Response message, null if successful

data
object