Availability with inclusions

POST {{endpoint}}/hotel-api/1.0/hotels

Hotel code list search.

In 'examples' you can find different cases of requests and responses.

Request Body

{"stay"=>{"checkIn"=>"2020-06-15", "checkOut"=>"2020-06-16"}, "occupancies"=>[{"rooms"=>1, "adults"=>2, "children"=>0}], "hotels"=>{"hotel"=>[1092, 39860, 100338]}, "inclusions"=>["RESIDENT_RATES"]}

HEADERS

KeyDatatypeRequiredDescription
Api-keystringAPI Key used in the request
X-SignaturestringSHA256 hash in Hex format from your API Key, your secret plus current timestamps in seconds
AcceptstringDefines response format, posible values: application/xml, application/json
Accept-EncodingstringDefines type of encoding used on the data
Content-TypestringDefines request format, posible values: application/xml, application/json

RESPONSES

status: OK

{"auditData":{"processTime":"219","timestamp":"2018-10-30 12:31:31.498","requestHost":"212.66.164.14","serverId":"ip-10-185-91-189.eu-west-1.compute.internal.node.int-hbg-aws-eu-west-1.discovery","environment":"[awseuwest1, awseuwest1b, ip_10_185_91_189]","release":"92f6bb9544abb46e7676b7c10e79ef629c3e7348","token":"D8C29709B2E444E0B8CE9BC2F6B0D17D","internal":"0|9806A35F55734E11540899091280|ES|11|2|10||||||||||||2||1~1~4~0|0|0||0|c8zj99aze7hdvtaqh4qvcck4|||"},"hotels":{"hotels":[{"code":19562,"name":"Hotel Nature Oviedo","categoryCode":"4EST","categoryName":"4 STARS","destinationCode":"OVD","destinationName":"Asturias","zoneCode":10,"zoneName":"Oviedo","latitude":"43.362631","longitude":"-5.859017","rooms":[{"code":"FAM.ST","name":"FAMILY ROOM STANDARD","rates":[{"rateKey":"20190115|20190120|W|102|19562|FAM.ST|NRF-LES|RO||1~4~0||N@9806A35F55734E11540899091280AAES000000200000000112402ba","rateClass":"NRF","rateType":"BOOKABLE","net":"698.64","allotment":1,"rateCommentsId":"102|190011|0","paymentType":"AT_WEB","packaging":false,"boardCode":"RO","boardName":"ROOM ONLY","cancellationPolicies":[{"amount":"698.64","from":"2018-10-29T23:59:00+01:00"}],"rooms":1,"adults":4,"children":0,"promotions":[{"code":"073","name":"Non-refundable rate. No amendments permitted"}],"offers":[{"code":"9003","name":"Long Stay discount","amount":"-123.29"},{"code":"9008","name":"Extra bed discount","amount":"-393.38"}]},{"rateKey":"20190115|20190120|W|102|19562|FAM.ST|CG-BAR|RO||1~4~0||N@9806A35F55734E11540899091280AAES0000002000000001125d335","rateClass":"NOR","rateType":"BOOKABLE","net":"821.93","allotment":1,"paymentType":"AT_WEB","packaging":false,"boardCode":"RO","boardName":"ROOM ONLY","cancellationPolicies":[{"amount":"155.13","from":"2019-01-13T23:59:00+01:00"}],"rooms":1,"adults":4,"children":0,"offers":[{"code":"9008","name":"Extra bed discount","amount":"-393.38"}]},{"rateKey":"20190115|20190120|W|102|19562|FAM.ST|NRF-LES|BB||1~4~0||N@9806A35F55734E11540899091280AAES00000020000000011254354","rateClass":"NRF","rateType":"BOOKABLE","net":"852.84","allotment":1,"rateCommentsId":"102|190011|0","paymentType":"AT_WEB","packaging":false,"boardCode":"BB","boardName":"BED AND BREAKFAST","cancellationPolicies":[{"amount":"852.84","from":"2018-10-29T23:59:00+01:00"}],"rooms":1,"adults":4,"children":0,"promotions":[{"code":"073","name":"Non-refundable rate. No amendments permitted"}],"offers":[{"code":"9003","name":"Long Stay discount","amount":"-123.29"},{"code":"9008","name":"Extra bed discount","amount":"-393.38"}]},{"rateKey":"20190115|20190120|W|102|19562|FAM.ST|CG-BAR|BB||1~4~0||N@9806A35F55734E11540899091280AAES000000200000000111d3d0","rateClass":"NOR","rateType":"BOOKABLE","net":"976.13","allotment":1,"paymentType":"AT_WEB","packaging":false,"boardCode":"BB","boardName":"BED AND BREAKFAST","cancellationPolicies":[{"amount":"185.97","from":"2019-01-13T23:59:00+01:00"}],"rooms":1,"adults":4,"children":0,"offers":[{"code":"9008","name":"Extra bed discount","amount":"-393.38"}]}]}],"minRate":"698.64","maxRate":"976.13","currency":"EUR"},{"code":4541,"name":"Carreño","categoryCode":"2EST","categoryName":"2 STARS","destinationCode":"OVD","destinationName":"Asturias","zoneCode":10,"zoneName":"Oviedo","latitude":"43.368162","longitude":"-5.853966","rooms":[{"code":"FAM.C4","name":"FAMILY ROOM CAPACITY 4","rates":[{"rateKey":"20190115|20190120|W|102|4541|FAM.C4|NRF-TODOS1|RO||1~4~0||N@9806A35F55734E11540899091280AAES0000002000000001122d161","rateClass":"NRF","rateType":"BOOKABLE","net":"353.45","allotment":1,"rateCommentsId":"102|190196|0","paymentType":"AT_WEB","packaging":false,"boardCode":"RO","boardName":"ROOM ONLY","cancellationPolicies":[{"amount":"353.45","from":"2018-10-29T23:59:00+01:00"}],"rooms":1,"adults":4,"children":0,"promotions":[{"code":"073","name":"Non-refundable rate. No amendments permitted"}]},{"rateKey":"20190115|20190120|H|102|4541|FAM.C4|CG-TODOS1|RO||1~4~0||N@9806A35F55734E11540899091280AAES0000002000000001110195","rateClass":"NOR","rateType":"BOOKABLE","net":"405.00","sellingRate":"450.00","hotelSellingRate":"450.00","hotelCurrency":"EUR","hotelMandatory":true,"allotment":1,"commission":"45.00","commissionVAT":"0.00","commissionPCT":"10.00","rateCommentsId":"102|190194|0","paymentType":"AT_HOTEL","packaging":false,"boardCode":"RO","boardName":"ROOM ONLY","cancellationPolicies":[{"amount":"90.00","hotelAmount":"90.00","hotelCurrency":"EUR","from":"2019-01-12T23:59:00+01:00"}],"rooms":1,"adults":4,"children":0},{"rateKey":"20190115|20190120|W|102|4541|FAM.C4|CG-TODOS1|RO||1~4~0||N@9806A35F55734E11540899091280AAES000000200000000111f1a8","rateClass":"NOR","rateType":"BOOKABLE","net":"424.15","allotment":1,"rateCommentsId":"102|190194|0","paymentType":"AT_WEB","packaging":false,"boardCode":"RO","boardName":"ROOM ONLY","cancellationPolicies":[{"amount":"84.83","from":"2019-01-12T23:59:00+01:00"}],"rooms":1,"adults":4,"children":0},{"rateKey":"20190115|20190120|W|102|4541|FAM.C4|NRF-AD|BB||1~4~0||N@9806A35F55734E11540899091280AAES000000200000000112461bf","rateClass":"NRF","rateType":"BOOKABLE","net":"447.70","allotment":1,"rateCommentsId":"102|190195|0","paymentType":"AT_WEB","packaging":false,"boardCode":"BB","boardName":"BED AND BREAKFAST","cancellationPolicies":[{"amount":"447.70","from":"2018-10-29T23:59:00+01:00"}],"rooms":1,"adults":4,"children":0,"promotions":[{"code":"073","name":"Non-refundable rate. No amendments permitted"}]},{"rateKey":"20190115|20190120|H|102|4541|FAM.C4|OFE-TODOS-AD|BB||1~4~0||N@9806A35F55734E11540899091280AAES00000020000000011232205","rateClass":"NOR","rateType":"BOOKABLE","net":"517.50","sellingRate":"575.00","hotelSellingRate":"575.00","hotelCurrency":"EUR","hotelMandatory":true,"allotment":1,"commission":"57.50","commissionVAT":"0.00","commissionPCT":"10.00","rateCommentsId":"102|190197|0","paymentType":"AT_HOTEL","packaging":false,"boardCode":"BB","boardName":"BED AND BREAKFAST","cancellationPolicies":[{"amount":"115.00","hotelAmount":"115.00","hotelCurrency":"EUR","from":"2019-01-12T23:59:00+01:00"}],"rooms":1,"adults":4,"children":0},{"rateKey":"20190115|20190120|W|102|4541|FAM.C4|OFE-TODOS-AD|BB||1~4~0||N@9806A35F55734E11540899091280AAES0000002000000001125f21d","rateClass":"NOR","rateType":"BOOKABLE","net":"541.95","allotment":1,"rateCommentsId":"102|190197|0","paymentType":"AT_WEB","packaging":false,"boardCode":"BB","boardName":"BED AND BREAKFAST","cancellationPolicies":[{"amount":"108.39","from":"2019-01-12T23:59:00+01:00"}],"rooms":1,"adults":4,"children":0}]}],"minRate":"353.45","maxRate":"541.95","currency":"EUR","creditCards":[{"code":"VI","name":"VISA-SSL","paymentType":"AT_HOTEL"},{"code":"MC","name":"ECMC-SSL","paymentType":"AT_HOTEL"},{"code":"DC","name":"DINERS-SSL","paymentType":"AT_HOTEL"}]}],"checkIn":"2019-01-15","total":2,"checkOut":"2019-01-20"}}