Skip to main content
POST
/
book
/
{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": {
      "id": 123,
      "status": "confirmed",
      "voucher": "<string>",
      "hotelId": 123,
      "checkIn": "<string>",
      "checkOut": "<string>",
      "firstName": "<string>",
      "lastName": "<string>",
      "email": "<string>",
      "phone": "<string>",
      "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>",
      "rooms": [
        {
          "adults": [
            {
              "title": "<string>",
              "firstName": "<string>",
              "lastName": "<string>"
            }
          ],
          "children": [
            {
              "title": "<string>",
              "firstName": "<string>",
              "lastName": "<string>",
              "age": 123
            }
          ]
        }
      ],
      "clientCommission": "<string>",
      "paymentMethod": "creditCard",
      "userId": 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
        ]
      }
    }
  }
}

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

Body

application/json
rooms
object[]
required
email
string<email>
required
phone
string
required
Minimum string length: 1
paymentNonce
string
Minimum string length: 1

Response

200 - application/json

Booking created successfully

success
boolean

Indicates if the request was successful

message
string | null

Response message, null if successful

data
object