Booking (prepaymentCard)
POST {{secure_endpoint}}/hotel-api/1.0/bookings
Standard Booking operation. In 'examples' you can find different cases of requests and responses.
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Api-key | string | API Key used in the request | |
X-Signature | string | SHA256 hash in Hex format from your API Key, your secret plus current timestamps in seconds | |
Accept | string | Defines response format, posible values: application/xml, application/json | |
Accept-Encoding | string | Defines type of encoding used on the data | |
Content-Type | string | Defines request format, posible values: application/xml, application/json |
RESPONSES
status: OK
"\u003c?xml version=\"1.0\" encoding=\"UTF-8\"?\u003e\u003cbookingRS xmlns=\"http://www.hotelbeds.com/schemas/messages\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" schemaLocation=\"http://www.hotelbeds.com/schemas/messages\"\u003e\u003cauditData processTime=\"1281\" timestamp=\"2017-08-31 11:29:35.678\" requestHost=\"212.170.239.110\" serverId=\"sa3RKSJACHXE79K.env#PL\" environment=\"[int]\" release=\"23c542efb2ca3c1642f5f0d87c6c410b81c52ee3\" token=\"09102e65-61c5-4ca6-9602-1e0eaa599a76\" internal=\"0|ADF60A8220E74BBBA4990048BF74C6731128|BR|06|1|5|||||||||-2.09|C|R|1|5|1~1~1~2||0||0|wuupfvswdqfz342cejxfv3ku||\"/\u003e\u003cbooking reference=\"52-1274418\" clientReference=\"INTEGRATIONAGENCY\" creationDate=\"2017-08-31\" status=\"CONFIRMED\" creationUser=\"wuupfvswdqfz342cejxfv3ku\" totalNet=\"302.26\" pendingAmount=\"302.26\" currency=\"EUR\"\u003e\u003cmodificationPolicies cancellation=\"true\" modification=\"true\"/\u003e\u003cholder name=\"INTEGRATIONTESTFIRSTNAME\" surname=\"INTEGRATIONTESTLASTNAME\"/\u003e\u003chotel checkOut=\"2017-09-20\" checkIn=\"2017-09-15\" code=\"1\" name=\"Villa Dorada\" categoryCode=\"3EST\" categoryName=\"3 STARS\" destinationCode=\"SAL\" destinationName=\"Salou Area / Costa Dorada\" zoneCode=\"10\" zoneName=\"Salou\" latitude=\"41.06865947991072\" longitude=\"1.1524744666303377\" totalNet=\"302.26\" currency=\"EUR\"\u003e\u003crooms\u003e\u003croom status=\"CONFIRMED\" id=\"1\" code=\"DBT.ST-3\" name=\"Double or Twin MONOPARENTAL 1 ADULT 2 CHILDREN\"\u003e\u003cpaxes\u003e\u003cpax roomId=\"1\" type=\"AD\" name=\"First Adult Name\" surname=\"Surname\"/\u003e\u003cpax roomId=\"1\" type=\"CH\" age=\"6\" name=\"Second Child Name\"/\u003e\u003cpax roomId=\"1\" type=\"CH\" age=\"5\" name=\"First Child Name\"/\u003e\u003c/paxes\u003e\u003crates\u003e\u003crate rateClass=\"NOR\" net=\"302.26\" rateComments=\"1x Double or Twin Estimated total amount of taxes \u0026amp; fees for this booking: 2.50 Euro payable on arrival \u0026#xd;. Car park NO . Key Collection 14:00 – 00:00. Check-in hour 14:00 – 00:00. . This rate is not applicable to Spain, Italy \u0026amp; Portugal market/country or passport holders otherwise the reservation will not be accepted or supplement fees can be charged on arrival.\" paymentType=\"AT_WEB\" packaging=\"false\" boardCode=\"RO\" boardName=\"ROOM ONLY\" rooms=\"1\" adults=\"1\" children=\"2\"\u003e\u003ccancellationPolicies\u003e\u003ccancellationPolicy amount=\"141.00\" from=\"2017-09-14T23:59:00+02:00\"/\u003e\u003ccancellationPolicy amount=\"70.50\" from=\"2017-09-12T23:59:00+02:00\"/\u003e\u003c/cancellationPolicies\u003e\u003c/rate\u003e\u003c/rates\u003e\u003c/room\u003e\u003c/rooms\u003e\u003csupplier name=\"HOTELBEDS PRODUCT,S.L.U.\" vatNumber=\"ESB38877676\"/\u003e\u003c/hotel\u003e\u003c/booking\u003e\u003c/bookingRS\u003e"