Pre-Booking
1 min
Pre - Booking
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://wsb.bakuun.com/v2/booking/MPBXX/XXXX
{
"username": "XXXXXX",
"password": "XXXXXX",
"partnerId": "MPBXX",
"partnerName": "May test Slough",
"action": "getBooking",
"hotelReservation": [
{
"hotelCode": "HTLXXX",
"hotelName": "Novotel Barossa Valley Resort",
"resStatus": "New",
"checkIn": "YYYY-MM-DDTHH:MM",
"checkOut": "YYYY-MM-DDTHH:MM",
"paymentMethod": "BANK",
"rateType": "BAR",
"currencyCode": "HKD",
"totalAdult": "3",
"totalChild": "2",
"child_ages": [1,2],
"totalBaby": "1",
"baby_ages": [1],
"roomStays": [
{
"roomTypeId": "RXXX.X",
"roomName": "Deluxe Double Room with Sea View",
"roomType": "Daily Room",
"ratePlanId": "RXXX.X.X",
"cancelPolicy": "Non refundable",
"numberOfUnits": "1",
"adultCount": "2",
"childCount": "1",
"child_ages": [1],
"babyCount": "1",
"baby_ages": [1],
"commission": "5.00",
"roomIndex": "1",
"ResGuestRPH": "1",
"bookingPerDayPrices": [
{
"dateYmd": "YYYY-MM-DD",
"price": "XXX.XX"
}
],
"total": {
"amountAfterTaxes": "XXX.XX",
"amountBeforeTaxes": "XXX.XX"
},
"roomIncServices": [
{
"serviceId": "123",
"IncServiceName": "servicename",
"inclusion": "0",
"priceExtra": "500.30"
}
]
},
{
"roomTypeId": "RXXX.X",
"roomName": "Deluxe Double Room with Sea View",
"roomType": "Daily Room",
"ratePlanId": "RXXX.X.X",
"cancelPolicy": "Non refundable",
"numberOfUnits": "1",
"adultCount": "2",
"childCount": "1",
"child_ages": [2],
"babyCount": "0",
"baby_ages": [],
"commission": "5.00",
"roomIndex": "2",
"ResGuestRPH": "2",
"bookingPerDayPrices": [
{
"dateYmd": "YYYY-MM-DD",
"price": "XXX.XX"
}
],
"total": {
"amountAfterTaxes": "XXX.XX",
"amountBeforeTaxes": "XXX.XX"
},
"roomIncServices": [
{
"serviceId": "123",
"IncServiceName": "servicename",
"inclusion": "0",
"priceExtra": "500.30"
}
]
}
],
"guestDetails": [
{
"ResGuestRPH": "1",
"firstName": "Test",
"lastName": "User",
"middleName": "Test",
"email": "[email protected]",
"phone": "111111111",
"address": "Pune",
"country": "India"
},
{
"ResGuestRPH": "2",
"firstName": "Test",
"lastName": "Userg",
"middleName": "",
"email": "[email protected]",
"phone": "111111111",
"address": "Pune",
"country": "india"
}
],
"Comment": {
"Text": "one-room"
},
"paymentCard": {
"cardHolderName": "",
"cardType": "",
"cardCategory": "",
"cardNumber": "",
"ExpiryMonth": "",
"ExpiryYear": "",
"StartDayMonth": "",
"StartDayYear": "",
"IssueNum": "",
"seriesCode": "",
"vccBalance": "",
"vccCurrencyCode": "",
"vccDeactivationDate": "",
"vccActivationDate": ""
},
"totalCharge": [
{
"taxDetails": {
"typeTax": "VAT",
"includes": "0/1",
"taxPrice": "10.00",
"taxDetails": "TAX 10% not included"
},
"priceDetails": [
{
"rateType": "BAR",
"amountAfterTaxes": "XXX.XX",
"amountBeforeTaxes": "XXX.XX"
}
]
}
]
}
]
}