Pre-Booking
1 min
Pre-Booking API
During the pre-booking process, the partner must send the booking data without a reservation ID, as the booking is not yet confirmed.
In response, we will generate and return a unique token code for that pre-booking. Each token is valid for 2 minutes.
To confirm the booking, you must resend the same token code together with your reservation ID.
If the token is missing, invalid, or expired, the reservation request will be rejected.
Once we receive the reservation data together with a valid token code, we will create the booking in our system and return a success response.
All pre-bookings are initially created with the status “New.”
POST
https://wspull.bakuun.com/v2/booking/XXXXX/xxxxx
{
"username": "RDKXXX",
"password": "RDKXXX",
"tokenId": "98f51e05fe012a890f55609886201221",
"partnerId": "RDKXXX",
"partnerName": "Vesper Hotel",
"action": "getBooking",
"hotelReservation": [
{
"hotelCode": "HTLXXX.XX",
"hotelName": "Vesper Hotel",
"resStatus": "New",
"checkIn": "2022-12-23T15:00",
"checkOut": "2022-12-25T15:00",
"paymentMethod": "VCC",
"rateType": "BAR",
"currencyCode": "RUB",
"totalAdult": "2",
"totalChild": "2",
"childAges": [
3,
6
],
"roomStays": [
{
"occupancyRefId": "2",
"roomTypeId": "RXXX.X.X",
"roomName": "Budget Single Room",
"ratePlanId": "RXXX.X.X.X",
"cancelPolicy": "Non Refundable",
"numberOfUnits": "2",
"mealslncluded": "Breakfast",
"adultCount": "2",
"childCount": "2",
"childAges": [
"3",
"6"
],
"commission": "5.00",
"roomIndex": "1",
"ResGuestRPH": "1",
"bookingPerDayPrices": [
{
"dateYmd": "2022-12-23",
"price": "110.00"
},
{
"dateYmd": "2022-12-24",
"price": "190.00"
}
],
"total": {
"amountAfterTaxes": "600.00",
"amountBeforeTaxes": "600.00"
},
"mealsExcluded": {
"mealsExlcudedPerDayPrices": [
{
"dateYmd": "2022-12-23",
"excludedMeals": "breakfast,lunch,dinner",
"breakfastChargeInfo": [
{
"ageQualifying": "adult",
"mealsPerUnit": "100.00",
"mealPerDay": "300.00",
"adultMealCount": "3"
},
{
"ageQualifying": "child",
"mealsPerUnit": "100.00",
"mealPerDay": "300.00",
"childMealCount": "2",
"child_ages": [
3,
6
]
},
{
"ageQualifying": "infant",
"mealsPerUnit": "null",
"mealPerDay": "null",
"infantMealCount": "2",
"infant_ages": [
3,
6
]
}
],
"lunchChargeInfo": [
{
"ageQualifying": "adult",
"mealsPerUnit": "100.00",
"mealPerDay": "300.00",
"adultMealCount": "3"
},
{
"ageQualifying": "child",
"mealsPerUnit": "100.00",
"mealPerDay": "300.00",
"childMealCount": "2",
"child_ages": [
3,
6
]
},
{
"ageQualifying": "infant",
"mealsPerUnit": "null",
"mealPerDay": "null",
"infantMealCount": "2",
"infant_ages": [
3,
6
]
}
],
"dinnerChargeInfo": [
{
"ageQualifying": "adult",
"mealsPerUnit": "100.00",
"mealPerDay": "300.00",
"adultMealCount": "3"
},
{
"ageQualifying": "child",
"mealsPerUnit": "100.00",
"mealPerDay": "300.00",
"childMealCount": "2",
"child_ages": [
3,
6
]
},
{
"ageQualifying": "infant",
"mealsPerUnit": "null",
"mealPerDay": "null",
"infantMealCount": "2",
"infant_ages": [
3,
6
]
}
]
}
]
},
"roomIncServices": [
{
"serviceId": "123",
"serviceName": "servicename"
},
{
"serviceId": "234",
"serviceName": "servicename"
}
],
"roomExtraServices": [
{
"serviceId": "123",
"serviceName": "servicefirst",
"servicesChargeInfo": [
{
"ageQualifying": "adult",
"extraAdultCount": "3",
"extraRate": "10.00",
"totalExtraAmount": "30.00"
},
{
"ageQualifying": "child",
"extraChildRate": "10.00",
"totalExtraAmount": "30.00",
"childExtraCount": "2",
"child_ages": [
3,
6
]
},
{
"ageQualifying": "infant",
"extraInfantRate": "10.00",
"totalExtraAmount": "30.00",
"childInfantCount": "3",
"child_ages": [
3,
3,
6
]
}
]
},
{
"serviceId": "343",
"serviceName": "servicesecond",
"servicesChargeInfo": [
{
"ageQualifying": "guest",
"extraCount": "3",
"extraRate": "null",
"totalExtraAmount": "null"
},
{
"ageQualifying": "child",
"extraChildRate": "null",
"totalExtraAmount": "null",
"childExtraCount": "1",
"child_ages": [
3
]
},
{
"ageQualifying": "infant",
"extraInfantRate": "",
"totalExtraAmount": "",
"childInfantCount": "",
"child_ages": []
}
]
}
]
},
{
"occupancyRefId": "3",
"roomTypeId": "R503.1.2",
"roomName": "Budget Single Room",
"ratePlanId": "R503.1.2.1",
"cancelPolicy": "Non Refundable",
"numberOfUnits": "2",
"mealslncluded": "Breakfast",
"adultCount": "2",
"childCount": "0",
"childAges": [],
"commission": "5.00",
"roomIndex": "2",
"ResGuestRPH": "2",
"bookingPerDayPrices": [
{
"dateYmd": "2022-12-23",
"price": "110.00"
},
{
"dateYmd": "2022-12-24",
"price": "190.00"
}
],
"total": {
"amountAfterTaxes": "600.00",
"amountBeforeTaxes": "600.00"
},
"mealsExcluded": {
"mealsExlcudedPerDayPrices": [
{
"dateYmd": "2022-12-23",
"excludedMeals": "no meals"
},
{
"dateYmd": "2022-12-24",
"excludedMeals": "no meals"
}
]
},
"roomIncServices": [],
"roomExtraServices": []
}
],
"guestDetails": [
{
"ResGuestRPH": "1",
"firstName": "Test1",
"lastName": "Booking",
"middleName": "",
"email": "[email protected]",
"phone": "111111111",
"address": "Pune",
"country": "India"
},
{
"ResGuestRPH": "2",
"firstName": "Test2",
"lastName": "Booking",
"middleName": "",
"email": "[email protected]",
"phone": "909999989",
"address": "Italy",
"country": "Italy"
}
],
"Comment": {
"Text": "one-room"
},
"paymentCard": {
"cardHolderName": "IVANOV IVAN",
"cardType": "Visa",
"cardCategory": "CC",
"cardNumber": "123213213216549687",
"ExpiryMonth": "04",
"ExpiryYear": "2022",
"StartDayMonth": "XYZ",
"StartDayYear": "XYZ",
"IssueNum": "2",
"seriesCode": "123",
"vccBalance": "200.99",
"vccCurrencyCode": "EUR",
"vccActivationDate": "2021-09-19",
"vccDeactivationDate": "2021-09-19"
},
"totalCharge": [
{
"taxDetails": {
"typeTax": "VAT",
"includes": "0",
"taxPrice": "10.00",
"taxDetails": "TAX 10% not included"
},
"priceDetails": [
{
"rateType": "BAR",
"amountAfterTaxes": "490.00",
"amountBeforeTaxes": "490.00"
}
]
}
]
}
]
}