СREATE OWN HOTEL DESCRIPTION
In order to create an own new hotel description you need to use POST/ hotelinfo method.
To add all mandatory information for a new hotel description you will need additional methods:
GET /locations (countryId and cityId)
GET /companies (supplierId)
Example of the request POST /hotelinfo method
{ "hotelMealTypes": [ { "mealTypeCode": "BB", "shortDescription": { "en": "Light breakfast in a hotel, that includes baked goods, jam, fruit, and coffee." }, "description": { "en": "Here are some of the options that a continental breakfast consists of Baked Goods. Optional: Breakfast cereals, eggs, meats, sliced cheese, porridge or oatmeal" }, "active": true, "name": { "en": "Breakfast" } } ], "internalNoteLocalizable": { "en": "For all" }, "descriptionLocalizable": { "en": "Description test" }, "hotelAddressLocalizable": { "en": "Victoria Street 5" }, "email": "n.dastouri@gpsolutions.com", "url": "https://ibe.softwaretravel.net/", "categoryId": 131158, "rating": 0, "zip": "333222", "stdCategory": "FIVE", "fax": "1122244444", "phone": "1234455555", "latitude": 40.42136748660872, "longitude": -3.7081224776912, "rooms": [ { "shortDescription": { "en": "Standard" }, "description": { "en": "Standard" }, "categoryId": 1000209, "otaCode": "1", "guestAllocations": [ { "adultsQuantity": 2, "childrenQuantity": 1, "childrenAges": [ { "childAgeFrom": 0, "childAgeTo": 10 } ], "delete": false } ], "maxExtraplace": 1, "maxOccupancy": 2, "maxWithoutPlace": 0, "minOccupancy": 1, "maxTotalOccup": 3, "active": true, "bedroomsQuantity": 1, "bathroomsQuantity": 1, "name": { "en":"Family room" } } ], "hotelNameLocalizable": { "en": "Hotel Charles OLD" }, "countryId": 8016, "hotelCode": "OLD12", "cityId": 8885, "checkInFrom": "12:00", "checkInTo": "13:00", "checkOutFrom": "14:00", "checkOutTo": "15:00", "fullInfoAvailable": false, "nextDayCheckout": false, "contentProviderId": 1, "active": true, "hotelTypeId": 27, "fullLegalNameLocalizable": { "en": "Hotel API test full name NEW" }, "registrationID": "11111", "taxIdentificationNumber": "555555" }
|
Response Body
{
"hotelId": 11814738,
"hotelTypeId": 27,
"categoryId": 131158,
"hotelCode": "OLD12",
"active": true,
"hotelNameLocalizable": {
"en": "Hotel Charles OLD"
},
"hotelAddressLocalizable": {
"en": "Victoria Street 5"
},
"contentProviderId": 1,
"stdCategory": "FIVE",
"phone": "1234455555",
"fax": "1122244444",
"email": "n.dastouri@gpsolutions.com",
"url": "https://ibe.softwaretravel.net/",
"descriptionLocalizable": {
"en": "Description test"
},
"latitude": 40.42136748660872,
"longitude": -3.7081224776912,
"fullInfoAvailable": false,
"checkInFrom": "12:00",
"checkInTo": "13:00",
"checkOutFrom": "14:00",
"checkOutTo": "15:00",
"nextDayCheckout": false,
"destinationTypes": [],
"rating": 0,
"cityId": 8885,
"countryId": 8016,
"zip": "333222",
"hotelServices": [],
"rooms": [
{
"id": 5518009,
"active": true,
"name": {
"en": "Family room"
},
"otaCode": "1",
"categoryId": 1000209,
"shortDescription": {
"en": "Standard"
},
"description": {
"en": "Standard"
},
"minOccupancy": 1,
"maxOccupancy": 2,
"maxExtraplace": 1,
"maxWithoutPlace": 0,
"maxTotalOccup": 3,
"bedroomsQuantity": 1,
"bathroomsQuantity": 1,
"guestAllocations": [
{
"adultsQuantity": 2,
"childrenQuantity": 1,
"childrenAges": [
{
"childAgeFrom": 0,
"childAgeTo": 10
}
],
"delete": false
}
]
}
],
"kids": [],
"spa": [],
"sports": [],
"restaurants": [],
"hotelMealTypes": [
{
"id": 2293277,
"name": {
"en": "Breakfast"
},
"description": {
"en": "Here are some of the options that a continental breakfast consists of Baked Goods. Optional: Breakfast cereals, eggs, meats, sliced cheese, porridge or oatmeal"
},
"shortDescription": {
"en": "Light breakfast in a hotel, that includes baked goods, jam, fruit, and coffee."
},
"active": true,
"mealTypeCode": "BB",
"otaCode": 3
}
],
"images": [],
"fullLegalNameLocalizable": {
"en": "Hotel API test full name OLD"
},
"registrationID": "11111",
"taxIdentificationNumber": "555555",
"internalNoteLocalizable": {
"en": "For all"
}
}