API for Booking Engine services

Endpoint: https://secure.webbookingpro.com/bapi/booking.php

Request JSON, response JSON, JSON in POST data.

Request – getting Hotel information – room types, …

{
“Action”: “getHotelInfo”,
“Data”: {
“hotelId”: “XX”
}
}

Request – getting Availability

{
“Action”: “getAvailable”,
“Data”: {
“hotelId”: “XX”,
“fromDate”: “2024-03-24”,
“toDate”: “2024-03-25”,
“coupon”: “YYYY” // optional coupon code – for agencies
}
}

Request – getting Availability and Prices

{
“Action”: “getResults”,
“Data”: {
“hotelId”: “XX”,
“fromDate”: “YYYY-MM-DD”,
“toDate”: “YYYY-MM-DD”,
“adults”: 2,
“children”: 0,
“coupon”: “YYYY”, // optional, set to empty if default
“language”: “hr-HR”, // optional setting country/language origin for promotions
“isMobile”: 0, // optional setting mobile defice for promotions
“childAge”: “” // ages of children separated with comma
}
}

Request – creating reservation

{
“Action”: “newReservation”,
“Data”: {
“currency”: “EUR”,
“locale”: “en”,
“totalPrice”: 94,
“totalTax”: 4,
“totalExtras”: 0,
“comment”: “comment”,
“source”: “”,
“coupon”: “”,
“guestInfo”: {
“firstName”: “firstname”,
“lastName”: “lastname”,
“email”: “info@info.com”,
“phone”: “111111111”,
“address”: “addres1”,
“city”: “zagreb”,
“postalCode”: “10000”,
“country”: “croatia”,
“birthDate”: “1950-01-01”
},
“payment”: “bank.transfer”,
“extras”: [],
“items”: [
{
“fromDate”: “2024-03-22”,
“toDate”: “2024-03-23”,
“adults”: 2,
“children”: 0,
“childAge”: “”,
“hotelId”: 56,
“roomId”: 168,
“roomCount”: 1,
“code”: “xxxxxxxx”,
“price”: 90,
“mealPrice”: 0,
“extraBedCharge”: 0,
“extraBeds”: 0,
“taxPrice”: 4,
“policy”: 0,
“serviceId”: 35
}
]
}
}