Hotel Descriptive Info
POSThttps://pull.homolog.niara.tech/v1/api/Pull/GetHotelDescriptiveInfo
Provides information about hotel, rooms, multimedia, policies, etc.
Request
- application/json
Body
Possible values: [8
, 4
, 3
, 1
, 2
, 5
, 6
, 7
]
Default value: 8
LanguageCodeEnum:
8=br
| 4=pt
| 3=es
| 1=en
| 2=fr
| 5=da
| 6=it
| 7=de
An arbitrary string returned in the response for tracking/debugging.
The date and time (ISO format) just before the request is sent.
Possible values: [0
, 1
]
The target environment for this request.
TargetEnum:
0=Test
| 1=Production
Default value: 1
The version number of this request format.
POSType objectnullable
HotelDescriptiveInfosType object
Responses
- 200
- application/json
- Schema
- Example (from schema)
Schema
The same token received in the request.
ErrorsType objectnullable
Possible values: [8
, 4
, 3
, 1
, 2
, 5
, 6
, 7
]
Default value: 8
LanguageCodeEnum:
8=br
| 4=pt
| 3=es
| 1=en
| 2=fr
| 5=da
| 6=it
| 7=de
Success objectnullable
Possible values: [0
, 1
]
The environment target. The same value received in the request.
TargetEnum:
0=Test
| 1=Production
The date in ISO format right before the response is sent.
Version of the API being used. The same value received in the request.
WarningsType objectnullable
HotelDescriptiveContentsType object
{
"EchoToken": "string",
"ErrorsType": {
"Errors": [
{
"Code": 0,
"Language": 8,
"ShortText": "string"
}
]
},
"PrimaryLangID": 8,
"Success": {},
"Target": 0,
"TimeStamp": "string",
"Version": 0,
"WarningsType": {
"Warnings": [
{
"Code": 0,
"Language": 8,
"ShortText": "string"
}
]
},
"HotelDescriptiveContentsType": {
"HotelDescriptiveContents": [
{
"CurrencyCode": 1,
"TimeZone": "string",
"HotelRef": {
"BrandName": 0,
"ChainCode": 0,
"ChainName": "string",
"HotelCode": 0,
"HotelName": "string"
},
"HotelInfo": {
"WhenBuilt": "string",
"NFloors": 0,
"HandicapRooms": 0,
"SmokingRooms": 0,
"NonSmokingHotel": false,
"CheckInHours": {
"Start": "string",
"End": "string"
},
"BreakfastHours": {
"Start": "string",
"End": "string"
},
"ReceptionHours": {
"Start": "string",
"End": "string"
},
"ClosedSeasonsType": {
"ClosedSeasons": [
{
"Start": "string",
"Duration": 0,
"End": "string"
}
]
},
"Descriptions": {
"Renovations": [
{
"RenovationCompletionDate": "string"
}
],
"DescriptiveText": "string",
"MultimediaDescriptionsType": {
"MultimediaDescriptions": [
{
"ID": "string",
"InfoCode": 1,
"AdditionalDetailCode": 2,
"TextItemsType": {
"TextItems": [
{
"Name": "string",
"Description": "string"
}
]
},
"ImageItemsType": {
"ImageItems": [
{
"URL": {
"Address": "string",
"URLType": 0
},
"Position": {
"Latitude": "string",
"Longitude": "string"
},
"Name": "string",
"Description": "string",
"ImageFormat": [
{
"Sort": 0,
"IsPrimary": false
}
],
"Language": 8
}
]
},
"VideoItemsType": {
"VideoItems": [
{
"Position": {
"Latitude": "string",
"Longitude": "string"
},
"URL": {
"Address": "string",
"URLType": 0
},
"Name": "string",
"Language": 8,
"Description": "string"
}
]
}
}
]
}
},
"CategoryCodes": {
"HotelCategory": {
"PropertyClassType": 2
}
},
"Position": {
"Latitude": "string",
"Longitude": "string"
},
"HotelAmenities": [
{
"Code": "string",
"HotelAmenity": "string"
}
],
"OwnershipManagementInfosType": {
"OwnershipManagmentInfo": [
{
"Location": 1,
"RelationshipTypeCode": 0,
"Names": {
"Names": [
{
"NamePrefix": 1,
"GivenName": "string"
}
]
},
"Phones": {
"ContactNumbers": [
{
"ShareSyncInd": 1,
"ShareMarketInd": 1,
"PhoneNumber": "string",
"Extension": "string",
"PhoneLocationType": 1,
"PhoneTechType": 0
}
]
},
"Emails": [
"string"
]
}
]
},
"TotalRooms": 0,
"WLCode": 0,
"SurroundingRegions": [
{
"Code": "string"
}
]
},
"FacilityInfo": {
"GuestRoomsType": {
"GuestRooms": [
{
"Quantity": 0,
"MaxOccupancy": 0,
"MaxAdultOccupancy": 0,
"MinAdultOccupancy": 1,
"ID": 0,
"MaxChildOccupancy": 0,
"MaxFreeChildOccupancy": 0,
"AmenitiesType": {
"RoomAmenities": [
{
"RoomAmenity": "string",
"Code": "string"
}
]
},
"MultimediaDescriptionsType": {
"MultimediaDescriptions": [
{
"ID": "string",
"InfoCode": 1,
"AdditionalDetailCode": 2,
"TextItemsType": {
"TextItems": [
{
"Name": "string",
"Description": "string"
}
]
},
"ImageItemsType": {
"ImageItems": [
{
"URL": {
"Address": "string",
"URLType": 0
},
"Position": {
"Latitude": "string",
"Longitude": "string"
},
"Name": "string",
"Description": "string",
"ImageFormat": [
{
"Sort": 0,
"IsPrimary": false
}
],
"Language": 8
}
]
},
"VideoItemsType": {
"VideoItems": [
{
"Position": {
"Latitude": "string",
"Longitude": "string"
},
"URL": {
"Address": "string",
"URLType": 0
},
"Name": "string",
"Language": 8,
"Description": "string"
}
]
}
}
]
},
"DescriptiveText": "string",
"TypeRoom": {
"Size": 0,
"SizeMeasurement": "string",
"BedTypeCodes": [
{
"OTA_CodeType": 0,
"OTA_CodeName": "string"
}
],
"RoomClassificationCodes": [
{
"OTA_CodeType": 0,
"OTA_CodeName": "string"
}
],
"RoomViewCodes": [
{
"OTA_CodeType": 0,
"OTA_CodeName": "string"
}
]
},
"WLCode": 0
}
]
}
},
"ContactInfosType": {
"ContactInfos": [
{
"Location": 1,
"AddressesType": {
"Addresses": [
{
"AddressLine": "string",
"CityCode": 0,
"CityName": "string",
"CountryCode": 161,
"CountryName": "string",
"PostalCode": "string",
"StateProvCode": 0,
"StateProv": "string",
"ZoneCode": 0
}
]
},
"Phones": {
"ContactNumbers": [
{
"ShareSyncInd": 1,
"ShareMarketInd": 1,
"PhoneNumber": "string",
"Extension": "string",
"PhoneLocationType": 1,
"PhoneTechType": 0
}
]
},
"Emails": [
"string"
],
"URLsType": {
"URLs": [
{
"Address": "string",
"URLType": 0
}
]
}
}
]
},
"AffiliationInfo": {
"AwardsType": {
"Awards": [
{
"Rating": 0,
"Name": "string"
}
]
}
},
"AreaInfo": {
"RefPointsType": {
"RefPoints": [
{
"AttractionCategoryType": 0,
"LocationCode": "string",
"CodeContext": 0
}
]
},
"AttractionsType": {
"Attractions": [
{
"AttractionCategoryType": 0,
"OtherCategoryName": "string",
"AttractionName": "string",
"URL": {
"Address": "string",
"URLType": 0
},
"ID": 0
}
]
}
},
"Policies": {
"Latitude": "string",
"Longitude": "string"
},
"PrimaryLangID": 8,
"TPA_Extensions": {
"SupplierCode": "string"
}
}
]
}
}
Authorization: Username
name: Usernametype: apiKeydescription: Niara API Usernamein: header
name: Passwordtype: apiKeydescription: Niara API Passwordin: header
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X POST 'https://pull.homolog.niara.tech/v1/api/Pull/GetHotelDescriptiveInfo' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Username: <API_KEY_VALUE>' \
-H 'Password: <API_KEY_VALUE>' \
--data-raw '{
"PrimaryLangID": 8,
"EchoToken": "string",
"TimeStamp": "string",
"Target": 0,
"Version": 1,
"POSType": {
"Sources": [
{
"PseudoCityCode": "BRA",
"ISOCountry": "string",
"RequestorID": {
"ID": "string",
"Type": 3
}
}
]
},
"HotelDescriptiveInfosType": {
"HotelDescriptiveInfos": [
{
"AffiliationInfo": {
"SendAwards": false
},
"AreaInfo": {
"SendAttractions": false,
"SendRefPoints": false
},
"ContactInfo": {
"SendData": false
},
"FacilityInfo": {
"SendGuestRooms": false
},
"HotelInfo": {
"SendData": false
},
"MultimediaObjects": {
"SendData": false
},
"Policies": {
"SendPolicies": false
},
"HotelRef": {
"BrandName": 0,
"ChainCode": 0,
"ChainName": "string",
"HotelCode": 0,
"HotelName": "string"
}
}
]
}
}'