CheckRate

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

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

Request Body

{"rooms"=>[{"rateKey"=>"20190315|20190316|W|1|311|DBT.ST|PVP-SHORTSTAY|AI||1~2~0||N@08870BAE87754721542353710729AAES00000010000000007221346"}]}

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":"271","timestamp":"2018-11-16 10:38:54.986","requestHost":"212.66.164.12","serverId":"ip-10-185-90-99.eu-west-1.compute.internal.node.int-hbg-aws-eu-west-1.discovery","environment":"[awseuwest1, awseuwest1b, ip_10_185_90_99]","release":"80d6b02a41d538d94162b687b2f89cd1de509470","token":"D058B42E7FC54B17B96D951298D8CF10","internal":"0|7AA7EF7F12254801542359544456AAES0000006000000000725a165|ES|07|6|8|||||||||||R|1|2|~2~2~0|0|0||0|c8zj99aze7hdvtaqh4qvcck4|||"},"hotel":{"checkOut":"2019-06-16","checkIn":"2019-06-15","code":1533,"name":"THB Mirador","categoryCode":"4EST","categoryName":"4 STARS","destinationCode":"PMI","destinationName":"Majorca","zoneCode":10,"zoneName":"Palma","latitude":"39.5681","longitude":"2.6312","rooms":[{"code":"DBL.ST","name":"DOUBLE 2 ADULTS","rates":[{"rateKey":"20190615|20190616|W|1|1533|DBL.ST|CG BAR RO|RO||2~2~0||N@7AA7EF7F12254801542359544456AAES0000006000000000725a165","rateClass":"NOR","rateType":"BOOKABLE","net":"357.90","rateComments":"  Estimated total amount of taxes \u0026 fees for this booking:13.20 Euro payable on arrival.  Car park YES (with additional debit notes) 12.00 EUR Per unit/night.","paymentType":"AT_WEB","packaging":false,"boardCode":"RO","boardName":"ROOM ONLY","cancellationPolicies":[{"amount":"357.90","from":"2019-06-12T23:59:00+02:00"}],"taxes":{"taxes":[{"included":false,"amount":"13.20","currency":"EUR","clientAmount":"13.20","clientCurrency":"EUR"}],"allIncluded":false},"rooms":2,"adults":2,"children":0}]}],"totalNet":"357.90","currency":"EUR","creditCards":[{"code":"VI","name":"VISA-SSL","paymentType":"AT_HOTEL"},{"code":"AE","name":"AMEX-SSL","paymentType":"AT_HOTEL"},{"code":"MC","name":"ECMC-SSL","paymentType":"AT_HOTEL"},{"code":"DC","name":"DINERS-SSL","paymentType":"AT_HOTEL"}],"upselling":{"rooms":[{"code":"DBL.ST","name":"DOUBLE 2 ADULTS","rates":[{"rateKey":"20190615|20190616|H|1|1533|DBL.ST|CG BAR RO|RO||2~2~0||N@806E439035BF4061542361134758AAES0000001000000000523c18f","rateClass":"NOR","rateType":"BOOKABLE","net":"399.60","sellingRate":"444.00","hotelSellingRate":"444.00","hotelCurrency":"EUR","hotelMandatory":true,"allotment":10,"commission":"44.40","commissionVAT":"0.00","commissionPCT":"10.00","rateCommentsId":"1|105089|0","paymentType":"AT_HOTEL","packaging":false,"boardCode":"RO","boardName":"ROOM ONLY","cancellationPolicies":[{"amount":"444.00","hotelAmount":"444.00","hotelCurrency":"EUR","from":"2019-06-12T23:59:00+02:00"}],"rooms":2,"adults":2,"children":0,"rateup":"41.70"},{"rateKey":"20190615|20190616|H|1|1533|DBL.ST|CG BAR BB|BB||2~2~0||N@806E439035BF4061542361134758AAES000000100000000052141c9","rateClass":"NOR","rateType":"BOOKABLE","net":"457.20","sellingRate":"508.00","hotelSellingRate":"508.00","hotelCurrency":"EUR","hotelMandatory":true,"allotment":10,"commission":"50.80","commissionVAT":"0.00","commissionPCT":"10.00","rateCommentsId":"1|105100|0","paymentType":"AT_HOTEL","packaging":false,"boardCode":"BB","boardName":"BED AND BREAKFAST","cancellationPolicies":[{"amount":"508.00","hotelAmount":"508.00","hotelCurrency":"EUR","from":"2019-06-12T23:59:00+02:00"}],"rooms":2,"adults":2,"children":0,"rateup":"99.30"},{"rateKey":"20190615|20190616|W|1|1533|DBL.ST|CG BAR BB|BB||2~2~0||N@806E439035BF4061542361134758AAES00000010000000005232199","rateClass":"NOR","rateType":"BOOKABLE","net":"409.50","allotment":10,"rateCommentsId":"1|105100|0","paymentType":"AT_WEB","packaging":false,"boardCode":"BB","boardName":"BED AND BREAKFAST","cancellationPolicies":[{"amount":"409.50","from":"2019-06-12T23:59:00+02:00"}],"rooms":2,"adults":2,"children":0,"rateup":"51.60"}]},{"code":"DBL.VM","name":"DOUBLE SEA VIEW","rates":[{"rateKey":"20190615|20190616|H|1|1533|DBL.VM|CG BAR RO|RO||2~2~0||N@806E439035BF4061542361134758AAES0000001000000000525a1ef","rateClass":"NOR","rateType":"BOOKABLE","net":"495.90","sellingRate":"551.00","hotelSellingRate":"551.00","hotelCurrency":"EUR","hotelMandatory":true,"allotment":8,"commission":"55.10","commissionVAT":"0.00","commissionPCT":"10.00","rateCommentsId":"1|105089|0","paymentType":"AT_HOTEL","packaging":false,"boardCode":"RO","boardName":"ROOM ONLY","cancellationPolicies":[{"amount":"551.00","hotelAmount":"551.00","hotelCurrency":"EUR","from":"2019-06-12T23:59:00+02:00"}],"rooms":2,"adults":2,"children":0,"rateup":"138.00"},{"rateKey":"20190615|20190616|W|1|1533|DBL.VM|CG BAR BB|BB||2~2~0||N@806E439035BF4061542361134758AAES0000001000000000524c1ef","rateClass":"NOR","rateType":"BOOKABLE","net":"495.76","allotment":8,"rateCommentsId":"1|105100|0","paymentType":"AT_WEB","packaging":false,"boardCode":"BB","boardName":"BED AND BREAKFAST","cancellationPolicies":[{"amount":"495.76","from":"2019-06-12T23:59:00+02:00"}],"rooms":2,"adults":2,"children":0,"rateup":"137.86"},{"rateKey":"20190615|20190616|W|1|1533|DBL.VM|CG BAR RO|RO||2~2~0||N@806E439035BF4061542361134758AAES000000100000000052101bc","rateClass":"NOR","rateType":"BOOKABLE","net":"444.16","allotment":8,"rateCommentsId":"1|105089|0","paymentType":"AT_WEB","packaging":false,"boardCode":"RO","boardName":"ROOM ONLY","cancellationPolicies":[{"amount":"444.16","from":"2019-06-12T23:59:00+02:00"}],"rooms":2,"adults":2,"children":0,"rateup":"86.26"},{"rateKey":"20190615|20190616|H|1|1533|DBL.VM|CG BAR BB|BB||2~2~0||N@806E439035BF4061542361134758AAES00000010000000005232229","rateClass":"NOR","rateType":"BOOKABLE","net":"553.50","sellingRate":"615.00","hotelSellingRate":"615.00","hotelCurrency":"EUR","hotelMandatory":true,"allotment":8,"commission":"61.50","commissionVAT":"0.00","commissionPCT":"10.00","rateCommentsId":"1|105100|0","paymentType":"AT_HOTEL","packaging":false,"boardCode":"BB","boardName":"BED AND BREAKFAST","cancellationPolicies":[{"amount":"615.00","hotelAmount":"615.00","hotelCurrency":"EUR","from":"2019-06-12T23:59:00+02:00"}],"rooms":2,"adults":2,"children":0,"rateup":"195.60"}]}]},"paymentDataRequired":false}}