Get Availability

Get availability

Retuns Booking Availability

Header

Content-Type: application/x-www-form-urlencoded

POST

/Availability

&

/AvailabilityMulti

There are 2 availability calls with the same parameters. The difference is that the first (/Availability) returns results for one room to accommodate all the rooms requests with total prices based on the occupancy request. E.g. for two rooms for adults=1 and adults=2 only rooms that can accommodate the maximum adults in the request ,in this case 2, will be in the results with the total price to book two rooms of the same type. The second (/AvailabilityMulti) returns different rooms for each room request with the addition of the room request number in the results hosted in the response parameter room_request, room_request is not part of the (/Availability) response.

Body

api_version=1
&hotels=899,1,1174
&start_date=2016-01-21
&end_date=2016-01-23
&party=[{"adults":2, "children" : [ 1 ]}]
&lang=en_US
&currency=EUR
&user_country=GR
&booking_source=1
&promo_code=thePromo

Parameter

FieldTypeDescriptionMandatory
api_versionnumberThe version of the API used by this request. Set to 1true
hotelStringcomma seperated list of hotels to searchtrue
start_dateStringThe user's check-in date in YYYY-MM-DDtrue
end_dateStringThe user's check-out date in YYYY-MM-DDtrue
partyParty arrayArray of JSON objects including number of adults and children requested. Each party object represents the occupation for a separate room. For example, "party":[{"adults": 3}] is a request for one room that accommodates three adults, or "party":[{"adults": 2},{"adults": 2, "children": [11,8]}] is a request for one room for two adults and one room for two adults and two children aged 11 and 8.true
langStringLanguage code (see Supported Languages), which identifies the corresponding language and POS.true
user_countryStringSO 3166-1 alpha-2 country code corresponding to the user making this request. Can include and exclude rates base on rate setupfalse
booking_sourceNumbera number defined by bookonlinenow that can be used to differentiate the rate and promotion provided. If not specified the public available rates and promotion will be retunedFalse
promo_codeStringa string defined by bookonlinenow that can be used to differentiate the rates and promotion provided.false
currencyStringISO 4217 currency code. All prices, taxes, fees, and discount amounts should be returned in this requested currency.true

Success Response (200)

FieldTypeDescriptionMandatory
api_versionnumberVersion of the API used.true
hotelStringEcho the hotels listtrue
start_dateStringThe user's check-in date in YYYY-MM-DDtrue
end_dateStringEcho the check-out datetrue
partyParty arrayEcho the party arraytrue
langStringLanguage code The language of the response, if language not available English are returnedtrue
user_countryStringEcho the user countrytrue
currencyStringEcho the currency.true
hotelsHotels arrayObject of all offers per hotel listed in hotel_idstrue

Hotels

FieldTypeDescriptionMandatory
hotelidnumberthe unique hotelidtrue
room_typesRoomType arrayAn array of objects detailing the different kinds of rooms that are available for the entire party. The short description must be unique for each room type available in the hotel.true

RoomType

FieldTypeDescriptionMandatory
room_requeststringparty request that the room accommodates based on the number of rooms in the party arraytrue only for /AvailabilityMulti
namestringShort description of the room type.true
board_typestringRO:room Only, BB:Bed&Breakfast, HB:Half Board, FB:Full Board, AI: All Inclusivetrue
final_price_at_bookingPrice objectContains the entire price to be paid at time of booking, including taxes and fees.true
final_price_at_checkoutPrice objectContains the entire price to be paid at checkout (usually city taxes)true
profit_marginPrice objectthis is the profit margin (the amount of discount you get of the original price)true
descriptionstringContains information about roomtrue
rooms_availableNumberThe number of rooms remaining/available.true
partner_dataobjectMust be provide provided when a booking submit request is sent. to validate the requesttrue
line_itemsLineItem arrayContains the detailed breakdown of charges. An array of LineItem objects will contain a separate LineItem for each of rate, tax, and fee types.true
photosPhoto arrayAn array of photo objects for the roomtrue
cancellationCancellationSpecifies the penalty users have to pay at time of cancellation.true
occupancyOccupancyThe occupancy for this roomtrue
discountsarray of discountsthe discounts appliedtrue

Price

FieldTypeDescriptionMandatory
amountnumberThe value of the price.true
currencystringISO 4217 currency code for the price.true

LineItem

FieldTypeDescriptionMandatory
pricePriceContains the price of the line item.true
typestring"net_rate" - Net rate or "vat" - VAT amounttrue
paid_at_checkoutbooleantrue, if specific lineItem is to be paid at hotel; false, if it has to be paid at booking time.true
descriptionstringA textual description of the charge.true

Photo

FieldTypeDescriptionMandatory
urlstringURL for the image.true
widthnumberWidth in pixels of full size imagefalse
heightnumberHeight in pixels of full size imagefalse
descriptionstringA textual description of the charge.true

Cancellation

FieldTypeDescriptionMandatory
policystringtext to describe the cancellation policy.false
penaltiesPenalty arrayArray to describe the costs user has to pay if the rate is being cancelled.true

Penalty

FieldTypeDescriptionMandatory
fromstringDate determined from which time stamp this penalty is applied. Must be in ISO-8601 format, e.g. 2015-05-25T16:00:00+0000true, if penalty is not applied from the starting time of a booking.
penaltiesPriceObject containing amount & currency of the fee the user has to pay if rate is being cancelled.true

Occupancy

FieldTypeDescriptionMandatory
standard_personsintegerThe standard occupancy for this roomtrue
max_personsintegerThe maximum number of persons (adults and children) allowed to stay in the room.true
max_adultsintegerThe maximum number of adults allowed to stay in the room.true
max_childrenintegerThe maximum number of children allowed to stay in the roomtrue
max_children_ageintegerThe maximum age for a person to be considered as childtrue

Discount

FieldTypeDescriptionMandatory
marketing_textstringA short description of the discounttrue
final_ratenumberTthe total amount of the discounttrue

Response


    {
        "api_version": 1,
        "hotel_ids": "899",
        "start_date": "2019-11-01",
        "end_date": "2019-11-02",
        "lang": "en_US",
        "currency": "EUR",
        "party": [
            {
                "adults": 2,
                "children": [
                    1
                ]
            }
        ],
        "hotels": [
            {
                "hotel_id": 899,
                "room_types": [
                    {
                        "name": "Two-unit Suite-Saver : Early Bird Promotion",
                        "final_price_at_booking": {
                            "amount": 129.0,
                            "currency": "EUR"
                        },
                        "final_price_at_checkout": {
                            "amount": 15.5,
                            "currency": "EUR"
                        },
                        "profit_margin": {
                            "amount": 36.0,
                            "currency": "EUR"
                        },
                        "description": "The rooms are spacious, furnished with modern design and decoration and are equipped with all modern facilities and amenities. View: City viewRoom Size: 67 sq/m roomBeds: 1 large double, 1 single bed and 1 sofa bed",
                        "rooms_available": 4,
                        "partner_data": {
                            "hotelID": "899",
                            "roomType": "3025",
                            "ratetype": "8775",
                            "rateDetail": "33949",
                            "price": "129",
                            "discount": "6986",
                            "discount2": "0"
                        },
                        "occupancy": {
                            "standard_persons": 4,
                            "max_persons": 4,
                            "max_adults": 4,
                            "max_children": 2,
                            "max_children_age": 12
                        },
                        "line_items": [
                            {
                                "price": {
                                    "amount": 117.0,
                                    "currency": "EUR"
                                },
                                "type": "net_rate",
                                "paid_at_checkout": false,
                                "description": "Total amount at check-in"
                            },
                            {
                                "price": {
                                    "amount": 12.0,
                                    "currency": "EUR"
                                },
                                "type": "vat",
                                "paid_at_checkout": false,
                                "description": "Total tax at check-in"
                            },
                            {
                                "price": {
                                    "amount": 0.5,
                                    "currency": "EUR"
                                },
                                "type": "city_tax",
                                "paid_at_checkout": true,
                                "description": "city tax"
                            },
                            {
                                "price": {
                                    "amount": 15.0,
                                    "currency": "EUR"
                                },
                                "type": "service_fee",
                                "paid_at_checkout": true,
                                "description": "cleaning"
                            }
                        ],
                        "photos": [
                            {
                                "url": "https://demov3.book-onlinenow.net/Webpages/899/family-hotel-cork-city.jpg",
                                "width": 500,
                                "height": 300
                            },
                            {
                                "url": "https://demov3.book-onlinenow.net/Webpages/899/Triple-Room-2048x1024.jpg",
                                "width": 500,
                                "height": 300
                            },
                            {
                                "url": "https://demov3.book-onlinenow.net/Webpages/899/4.jpg",
                                "width": 500,
                                "height": 300
                            },
                            {
                                "url": "https://demov3.book-onlinenow.net/Webpages/899/images3.jpg",
                                "width": 500,
                                "height": 300
                            },
                            {
                                "url": "https://demov3.book-onlinenow.net/Webpages/899/images2.jpg",
                                "width": 500,
                                "height": 300
                            },
                            {
                                "url": "https://demov3.book-onlinenow.net/Webpages/899/01IMG_TS_7919.jpg",
                                "width": 500,
                                "height": 300
                            }
                        ],
                        "cancellation": {
                            "policy": "This rate is available only on a non-refundable basis. \nFull prepayment is required for this special rate. Upon booking entire stay amount will be charged to your credit card (full prepayment). The reservation is non changeable and, in case of cancellation, modification or non-show the prepayment is non refundable.\n",
                            "penalties": [
                                {
                                    "fee": {
                                        "amount": 117.0,
                                        "currency": "EUR"
                                    }
                                }
                            ]
                        },
                        "discounts": [
                            {
                                "marketing_text": "",
                                "final_rate": 63.0
                            }
                        ]
                    },
                    {
                        "name": "Deluxe Apartment-Saver : Early Bird Promotion",
                        "final_price_at_booking": {
                            "amount": 215.0,
                            "currency": "EUR"
                        },
                        "final_price_at_checkout": {
                            "amount": 15.5,
                            "currency": "EUR"
                        },
                        "profit_margin": {
                            "amount": 60.0,
                            "currency": "EUR"
                        },
                        "description": "3 Bedrooms - accommodates up to 6 personGroundfloor: 1 twin beds bedroom, shower WC, kitchen, living room. Upper floor: 1 Double bed bedroom, 1 twin bed bedroom, bathroom with bathtub, balcony. Extra facilities: Private swimming pool, dishwasher",
                        "rooms_available": 7,
                        "partner_data": {
                            "hotelID": "899",
                            "roomType": "3026",
                            "ratetype": "8775",
                            "rateDetail": "33950",
                            "price": "215",
                            "discount": "6986",
                            "discount2": "0"
                        },
                        "occupancy": {
                            "standard_persons": 6,
                            "max_persons": 6,
                            "max_adults": 6,
                            "max_children": 2,
                            "max_children_age": 12
                        },
                        "line_items": [
                            {
                                "price": {
                                    "amount": 195.0,
                                    "currency": "EUR"
                                },
                                "type": "net_rate",
                                "paid_at_checkout": false,
                                "description": "Total amount at check-in"
                            },
                            {
                                "price": {
                                    "amount": 20.0,
                                    "currency": "EUR"
                                },
                                "type": "vat",
                                "paid_at_checkout": false,
                                "description": "Total tax at check-in"
                            },
                            {
                                "price": {
                                    "amount": 0.5,
                                    "currency": "EUR"
                                },
                                "type": "city_tax",
                                "paid_at_checkout": true,
                                "description": "city tax"
                            },
                            {
                                "price": {
                                    "amount": 15.0,
                                    "currency": "EUR"
                                },
                                "type": "service_fee",
                                "paid_at_checkout": true,
                                "description": "cleaning"
                            }
                        ],
                        "photos": [
                            {
                                "url": "https://demov3.book-onlinenow.net/Webpages/899/9d7510205d2616cb23d2.jpg",
                                "width": 500,
                                "height": 300
                            },
                            {
                                "url": "https://demov3.book-onlinenow.net/Webpages/899/60af54122f254401ea3b.jpg",
                                "width": 500,
                                "height": 300
                            },
                            {
                                "url": "https://demov3.book-onlinenow.net/Webpages/899/c982be60be86587be748.jpg",
                                "width": 500,
                                "height": 300
                            }
                        ],
                        "cancellation": {
                            "policy": "This rate is available only on a non-refundable basis. \nFull prepayment is required for this special rate. Upon booking entire stay amount will be charged to your credit card (full prepayment). The reservation is non changeable and, in case of cancellation, modification or non-show the prepayment is non refundable.\n",
                            "penalties": [
                                {
                                    "fee": {
                                        "amount": 195.0,
                                        "currency": "EUR"
                                    }
                                }
                            ]
                        },
                        "discounts": [
                            {
                                "marketing_text": "",
                                "final_rate": 105.0
                            }
                        ]
                    },
                    {
                        "name": "Junior Elegance Suite-Saver : Early Bird Promotion",
                        "final_price_at_booking": {
                            "amount": 222.0,
                            "currency": "EUR"
                        },
                        "final_price_at_checkout": {
                            "amount": 15.5,
                            "currency": "EUR"
                        },
                        "profit_margin": {
                            "amount": 62.0,
                            "currency": "EUR"
                        },
                        "description": "The rooms are spacious, furnished with modern design and decoration and are equipped with all modern facilities and amenitiesView: Port viewRoom Size: 45 sq/m roomBeds: 1 large double and 1 single bed",
                        "rooms_available": 6,
                        "partner_data": {
                            "hotelID": "899",
                            "roomType": "3023",
                            "ratetype": "8775",
                            "rateDetail": "33947",
                            "price": "222",
                            "discount": "6986",
                            "discount2": "0"
                        },
                        "occupancy": {
                            "standard_persons": 4,
                            "max_persons": 4,
                            "max_adults": 4,
                            "max_children": 2,
                            "max_children_age": 12
                        },
                        "line_items": [
                            {
                                "price": {
                                    "amount": 202.0,
                                    "currency": "EUR"
                                },
                                "type": "net_rate",
                                "paid_at_checkout": false,
                                "description": "Total amount at check-in"
                            },
                            {
                                "price": {
                                    "amount": 20.0,
                                    "currency": "EUR"
                                },
                                "type": "vat",
                                "paid_at_checkout": false,
                                "description": "Total tax at check-in"
                            },
                            {
                                "price": {
                                    "amount": 0.5,
                                    "currency": "EUR"
                                },
                                "type": "city_tax",
                                "paid_at_checkout": true,
                                "description": "city tax"
                            },
                            {
                                "price": {
                                    "amount": 15.0,
                                    "currency": "EUR"
                                },
                                "type": "service_fee",
                                "paid_at_checkout": true,
                                "description": "cleaning"
                            }
                        ],
                        "photos": [
                            {
                                "url": "https://demov3.book-onlinenow.net/Webpages/899/isrotel-tower-hotel.jpg",
                                "width": 500,
                                "height": 300
                            },
                            {
                                "url": "https://demov3.book-onlinenow.net/Webpages/899/Junior-Suite-City-View2.jpg",
                                "width": 500,
                                "height": 300
                            },
                            {
                                "url": "https://demov3.book-onlinenow.net/Webpages/899/junior-city-view-double.jpg",
                                "width": 500,
                                "height": 300
                            }
                        ],
                        "cancellation": {
                            "policy": "This rate is available only on a non-refundable basis. \nFull prepayment is required for this special rate. Upon booking entire stay amount will be charged to your credit card (full prepayment). The reservation is non changeable and, in case of cancellation, modification or non-show the prepayment is non refundable.\n",
                            "penalties": [
                                {
                                    "fee": {
                                        "amount": 202.0,
                                        "currency": "EUR"
                                    }
                                }
                            ]
                        },
                        "discounts": [
                            {
                                "marketing_text": "",
                                "final_rate": 108.0
                            }
                        ]
                    },
                    {
                        "name": "Master Suite -Saver : Early Bird Promotion",
                        "final_price_at_booking": {
                            "amount": 343.0,
                            "currency": "EUR"
                        },
                        "final_price_at_checkout": {
                            "amount": 15.5,
                            "currency": "EUR"
                        },
                        "profit_margin": {
                            "amount": 96.0,
                            "currency": "EUR"
                        },
                        "description": "The Master Suites feature large furnished terrace with seating and dining area perfect for enjoying romantic sunsets or a delicious dinner. They include kitchen, WC, shower and lovely bedroom has a king size bed, work desk and luxurious open bathroom with bathtub with Jacuzzi and shower.View: Sea viewRoom Size: 45sq.m. roomBeds: 1 double ,3rd person in sofa bed Max Persons: 2+1extras",
                        "rooms_available": 10,
                        "partner_data": {
                            "hotelID": "899",
                            "roomType": "3024",
                            "ratetype": "8775",
                            "rateDetail": "33948",
                            "price": "343",
                            "discount": "6986",
                            "discount2": "0"
                        },
                        "occupancy": {
                            "standard_persons": 3,
                            "max_persons": 3,
                            "max_adults": 3,
                            "max_children": 2,
                            "max_children_age": 12
                        },
                        "line_items": [
                            {
                                "price": {
                                    "amount": 312.0,
                                    "currency": "EUR"
                                },
                                "type": "net_rate",
                                "paid_at_checkout": false,
                                "description": "Total amount at check-in"
                            },
                            {
                                "price": {
                                    "amount": 31.0,
                                    "currency": "EUR"
                                },
                                "type": "vat",
                                "paid_at_checkout": false,
                                "description": "Total tax at check-in"
                            },
                            {
                                "price": {
                                    "amount": 0.5,
                                    "currency": "EUR"
                                },
                                "type": "city_tax",
                                "paid_at_checkout": true,
                                "description": "city tax"
                            },
                            {
                                "price": {
                                    "amount": 15.0,
                                    "currency": "EUR"
                                },
                                "type": "service_fee",
                                "paid_at_checkout": true,
                                "description": "cleaning"
                            }
                        ],
                        "photos": [
                            {
                                "url": "https://demov3.book-onlinenow.net/Webpages/899/17E_113_Presidential_Suite_ELYSIUM.jpg",
                                "width": 500,
                                "height": 300
                            },
                            {
                                "url": "https://demov3.book-onlinenow.net/Webpages/899/17F_114_Presidential_Suite_ELYSIUM.jpg",
                                "width": 500,
                                "height": 300
                            },
                            {
                                "url": "https://demov3.book-onlinenow.net/Webpages/899/17G_115_Presidential_Suite_ELYSIUM.jpg",
                                "width": 500,
                                "height": 300
                            },
                            {
                                "url": "https://demov3.book-onlinenow.net/Webpages/899/18_601_Elite_Club_Reception_ELYSIUM.jpg",
                                "width": 500,
                                "height": 300
                            },
                            {
                                "url": "https://demov3.book-onlinenow.net/Webpages/899/20180529_145113.jpg",
                                "width": 500,
                                "height": 300
                            },
                            {
                                "url": "https://demov3.book-onlinenow.net/Webpages/899/20180529_145149.jpg",
                                "width": 500,
                                "height": 300
                            },
                            {
                                "url": "https://demov3.book-onlinenow.net/Webpages/899/20180529_150225.jpg",
                                "width": 500,
                                "height": 300
                            }
                        ],
                        "cancellation": {
                            "policy": "This rate is available only on a non-refundable basis. \nFull prepayment is required for this special rate. Upon booking entire stay amount will be charged to your credit card (full prepayment). The reservation is non changeable and, in case of cancellation, modification or non-show the prepayment is non refundable.\n",
                            "penalties": [
                                {
                                    "fee": {
                                        "amount": 312.0,
                                        "currency": "EUR"
                                    }
                                }
                            ]
                        },
                        "discounts": [
                            {
                                "marketing_text": "",
                                "final_rate": 168.0
                            }
                        ]
                    }
                ]
            }
        ]
    }