List OTA Property Types - Pull_ListOTAPropTypes
This method returns the list of available property types as classified by Open Travel Alliance Standard
Use Cases
- Map DH properties to OTA-specific categories
- Display property types using OTA terminology
- Filter search results by OTA property types
- Ensure compatibility with OTA platforms
Best Practices
- Cache Indefinitely: OTA types rarely change - cache permanently
- Load on Startup: Fetch once when application starts
- Map to Internal Types: Create mapping between DH and OTA types
- Display Correctly: Use OTA terminology in user-facing content
Request
XML request
<Pull_ListOTAPropTypes_RQ>
<Authentication>
<AccessKey>[AccessKey]</AccessKey>
<SecretKey>[SecretKey]</SecretKey>
</Authentication>
</Pull_ListOTAPropTypes_RQ>
Request fields
| XML Path | Data Type | Type | Description |
|---|---|---|---|
| Pull_ListOTAPropTypes_RQ | C | Root element | |
| Pull_ListOTAPropTypes_RQ/Authentication | C, M | Authentication details | |
| Pull_ListOTAPropTypes_RQ/Authentication/AccessKey | String(100) | M | Access key |
| Pull_ListOTAPropTypes_RQ/Authentication/SecretKey | String(100) | M | Secret key |
Response
XML response
<Pull_ListOTAPropTypes_RS>
<Status ID="0">Success</Status>
<ResponseID>5aa853ab207e4d829312046dc5d7dc66</ResponseID>
<PropertyTypes>
<PropertyType PropertyTypeID="1" OTACode="1">All suite</PropertyType>
<PropertyType PropertyTypeID="2" OTACode="2">All-Inclusive resort</PropertyType>
<PropertyType PropertyTypeID="3" OTACode="3">Apartment</PropertyType>
<PropertyType PropertyTypeID="4" OTACode="4">Bed and breakfast</PropertyType>
<PropertyType PropertyTypeID="7" OTACode="7">Chalet</PropertyType>
<PropertyType PropertyTypeID="16" OTACode="16">Guest house</PropertyType>
<PropertyType PropertyTypeID="20" OTACode="20">Hotel</PropertyType>
<PropertyType PropertyTypeID="22" OTACode="22">Lodge</PropertyType>
<PropertyType PropertyTypeID="30" OTACode="30">Resort</PropertyType>
<PropertyType PropertyTypeID="35" OTACode="35">Villa</PropertyType>
<PropertyType PropertyTypeID="37" OTACode="37">Castle</PropertyType>
<PropertyType PropertyTypeID="63" OTACode="3">Aparthotel</PropertyType>
<PropertyType PropertyTypeID="64" OTACode="31">Boat</PropertyType>
<PropertyType PropertyTypeID="65" OTACode="5">Cottage</PropertyType>
<PropertyType PropertyTypeID="66" OTACode="25">Camping</PropertyType>
<PropertyType PropertyTypeID="67" OTACode="34">House</PropertyType>
</PropertyTypes>
</Pull_ListOTAPropTypes_RS>
Response fields
| XML Path | Data Type | Type | Description |
|---|---|---|---|
| Pull_ListOTAPropTypes_RS | C | Root element | |
| Pull_ListOTAPropTypes_RS/Status | String (100) | M | See ListStatuses |
| Pull_ListOTAPropTypes_RS/Status@ID | Integer | M | See ListStatuses |
| Pull_ListOTAPropTypes_RS/ResponseID | String(32) | M | Unique response ID |
| Pull_ListOTAPropTypes_RS/PropertyTypes | C, M | A collection of property types | |
| Pull_ListOTAPropTypes_RS/PropertyTypes/PropertyTypes/PropertyType | String (50) | M | Description of a property type |
| Pull_ListOTAPropTypes_RS/PropertyTypes/PropertyTypes@PropertyTypeID | Integer | M | Unique OTA property type ID |
| Pull_ListOTAPropTypes_RS/PropertyTypes/PropertyTypes@OTACode | Integer | M | Property Type Code according to Open Travel Alliance standard |