Popular destinations and recommended accommodation for homepage
Accommodation search includes destination, check in check out, adults, children
Accommodation search includes destination, check in check out, adults, children
Accommodation details with information, facilities, policies, images
Accommodation checkout
Set accommodation booking with passengers
Get accommodation booking with passengers
Cancel accommodation booking
Insert accommodation booking payment
Info, proforma, invoice
Country, region, city
Country, region, city
Add Review
Newsletter subscribe
by name
Special offer, last minute, first minute Special offer, last minute, first minute
Excursion search includes destination, category, tags, departure day, adults, children
Excursion, images, tags
Set excursion booking with passengers
Get excursion booking with passengers
Cancel excursion booking
Insert excursion booking payment
Info, proforma, invoice
Excursion Categories, images
Excursion Categories, images
Authentications are performed based on the accountId of the user and the respective apiKey.
{ "accountId": "2", "apiKey":"o5ic8IZCZYPGgmgh" }
apiKey is 16 character length key and it is required for all API calls
All API requests should be made to: http://restapi.manage-booking.com/
Note: All data is case-sensitive. Language, apiKey and other values are case sensitive. For example, "test" and "Test" are considered two different words.
Methods to retrieve data from the API require a POST request
include("curlLib/curlWrap_v1.php"); // ************************** Get popular destinations ******************** $entity = "homepage"; $input['data'] = array( "accountId" => "2", "apiKey" => "o5ic8IZCZYPGgmgh", "language" => "en", "popularDestinations" => "1" ); $method = "POST"; $contentType = "application/json"; $input = json_encode($input); $apiResult = curlWrap($entity, $input, $method, $contentType); $apiResult = json_decode($apiResult, TRUE); echo '<pre>'; print_r($apiResult); echo '</pre>';
"accountID" and "apiKey" are required for all Api calls.
"language": en me hr si ru de nl fr it cz sk hu pl
Optional "countAccommodation" parameter count accommodations per destination.
Optional "lowestPrice" parameter load lowest prices for accommodation.
Note: Using "lowestPrice" and "countAccommodation" can increase response load time.
include("curlLib/curlWrap_v1.php"); // ************************** Accommodation listing ******************** $entity = "search"; $input['data'] = array( "accountId" => "2", "apiKey" => "o5ic8IZCZYPGgmgh", "language" => "en", "preview" => "1" ); $method = "POST"; $contentType = "application/json"; $input = json_encode($input); $apiResult = curlWrap($entity, $input, $method, $contentType); $apiResult = json_decode($apiResult, TRUE); echo '<pre>'; print_r($apiResult); echo '</pre>';
"accountID" and "apiKey" are required for all Api calls.
"language": en me hr si ru de nl fr it cz sk hu pl
"propertyType": apartment hotel villa authentic accommodation youth hostel houses with pool rooms tourist resorts holiday houses bed and breakfast
Optional "lowestPrice" parameter load lowest prices for accommodation.
Optional "showWithoutLowestPrice" parameter load properties even if they don't have lowest prices for accommodation.
include("curlLib/curlWrap_v1.php"); // ************************** Accommodation details ******************** $entity = "details"; $input['data'] = array( "accountId" => "2", "apiKey" => "o5ic8IZCZYPGgmgh", "language" => "en", "propertyId" => "1598", "preview" => "1" ); $method = "POST"; $contentType = "application/json"; $input = json_encode($input); $apiResult = curlWrap($entity, $input, $method, $contentType); $apiResult = json_decode($apiResult, TRUE); echo '<pre>'; print_r($apiResult); echo '</pre>';
"accountID" and "apiKey" are required for all Api calls.
"language": en me hr si ru de nl fr it cz sk hu pl
Optional "lowestPrice" parameter load lowest prices for accommodation.
Optional "availability" parameter return calendar availability for rooms.
Optional "showUnavailableRooms" parameter return all rooms with message why rooms are not available.
Optional "showPriceList" parameter return all rooms with message why rooms are not available.
include("curlLib/curlWrap_v1.php"); // ************************** Checkout ******************** $entity = "checkout"; $input['data'] = array( "accountId" => "2", "apiKey" => "o5ic8IZCZYPGgmgh", "language" => "en", "checkIn" => "24.11.2024", "checkOut" => "25.11.2024", "numAdult" => "1", "childAges" => [5,7], "roomId" => "11017" ); $method = "POST"; $contentType = "application/json"; $input = json_encode($input); $apiResult = curlWrap($entity, $input, $method, $contentType); $apiResult = json_decode($apiResult, TRUE); echo '<pre>'; print_r($apiResult); echo '</pre>';
"accountID" and "apiKey" are required for all Api calls.
"language": en me hr si ru de nl fr it cz sk hu pl
include("curlLib/curlWrap_v1.php"); // ************************** Set booking ******************** $entity = "setBooking"; $input['data'] = array( "accountId" => "2", "apiKey" => "o5ic8IZCZYPGgmgh", "language" => "en", "checkIn" => "24.11.2024", "checkOut" => "25.11.2024", "numAdult" => "1", "childAges" => [5,7], "roomId" => "11017", "status" => "CONFIRMED", "paymentMethod" => "Credit card online", "paymentOption" => "Payment in full", "note" => "", "passengers" => array( array( "gender" => "Male", "name" => "Ivan", "surname" => "Kukić", "email" => "ikukic@yahoo.com", "phone" => "+38267613079", "country" => "Crna Gora", "city" => "Bar", "address" => "Jovana Tomaševića 32", "birthDate" => "01.08.1982", "type" => "adult" ) ) ); $method = "POST"; $contentType = "application/json"; $input = json_encode($input); $apiResult = curlWrap($entity, $input, $method, $contentType); $apiResult = json_decode($apiResult, TRUE); echo '<pre>'; print_r($apiResult); echo '</pre>';
"accountID" and "apiKey" are required for all Api calls.
"language": en me hr si ru de nl fr it cz sk hu pl
"status": CONFIRMED ON-HOLD REQUEST
"paymentMethod": Credit card online Credit card using offline authorization Bank transfer Western Union Cache
"paymentOption": Payment in full 30% now and 70% balance 10 days before arrival 30% now and 70% balance upon arrival
Optional "doNotSendDocument" parameter prevent system from sending info, proforma or invoice to passenger
include("curlLib/curlWrap_v1.php"); // ************************** Set booking ******************** $entity = "getBooking"; $input['data'] = array( "accountId" => "2", "apiKey" => "o5ic8IZCZYPGgmgh", "bookingId" => "9841" ); $method = "POST"; $contentType = "application/json"; $input = json_encode($input); $apiResult = curlWrap($entity, $input, $method, $contentType); $apiResult = json_decode($apiResult, TRUE); echo '<pre>'; print_r($apiResult); echo '</pre>';
"accountID" and "apiKey" are required for all Api calls.
include("curlLib/curlWrap_v1.php"); // ************************** Set booking ******************** $entity = "cancelBooking"; $input['data'] = array( "accountId" => "2", "apiKey" => "o5ic8IZCZYPGgmgh", "bookingId" => "9841" ); $method = "POST"; $contentType = "application/json"; $input = json_encode($input); $apiResult = curlWrap($entity, $input, $method, $contentType); $apiResult = json_decode($apiResult, TRUE); echo '<pre>'; print_r($apiResult); echo '</pre>';
"accountID" and "apiKey" are required for all Api calls.