The Hotel Booking REST/JSON API is an open API that allows you to book the best hotel offers you have searched from a wide choice of providers.
Request
Provide your bearer token in the Authorization
header when making requests to protected resources. Example:Authorization: Bearer ********************
Example:{
"data": {
"type": "hotel-order",
"guests": [
{
"tid": 1,
"title": "MR",
"firstName": "BOB",
"lastName": "SMITH",
"phone": "+33679278416",
"email": "bob.smith@email.com"
}
],
"travelAgent": {
"contact": {
"email": "bob.smith@email.com"
}
},
"roomAssociations": [
{
"guestReferences": [
{
"guestReference": "1"
}
],
"hotelOfferId": "{{hotelOfferId}}"
}
],
"payment": {
"method": "CREDIT_CARD",
"paymentCard": {
"paymentCardInfo": {
"vendorCode": "VI",
"cardNumber": "4151289722471370",
"expiryDate": "2026-08",
"holderName": "BOB SMITH"
}
}
}
}
}
Request samples
curl --location --request POST '/v2/booking/hotel-orders' \
--header 'Content-Type: text/plain' \
--data-raw '{
"data": {
"type": "hotel-order",
"guests": [
{
"tid": 1,
"title": "MR",
"firstName": "BOB",
"lastName": "SMITH",
"phone": "+33679278416",
"email": "bob.smith@email.com"
}
],
"travelAgent": {
"contact": {
"email": "bob.smith@email.com"
}
},
"roomAssociations": [
{
"guestReferences": [
{
"guestReference": "1"
}
],
"hotelOfferId": "{{hotelOfferId}}"
}
],
"payment": {
"method": "CREDIT_CARD",
"paymentCard": {
"paymentCardInfo": {
"vendorCode": "VI",
"cardNumber": "4151289722471370",
"expiryDate": "2026-08",
"holderName": "BOB SMITH"
}
}
}
}
}'
Responses
application/json Modified at 2024-12-25 01:05:35