Segments

GET {{endpoint}}/hotel-content-api/1.0/types/segments?fields=all&language=ENG&from=1&to=100&useSecondaryLanguage=True

Returns the list of available segments.

Request Params

KeyDatatypeRequiredDescription
fieldsstringThe list of fields to be received in the response. If nothing is specified, the accommodation type code is returned. To retrieve all the fields use ‘all’. See the complete list of available fields in the response.
languagestringThe language code for the language in which you want the descriptions to be returned. If the language is not specified, English is the default language.
fromnumberThe number of the initial record to receive. If nothing is specified, 1 is the default value.
tonumberThe number of the final record to receive. If nothing is indicated, 100 is the default value.
useSecondaryLanguagestringSpecify "True" if you want to receive the descriptions in English if the description is not available in the language requested. Specify "False" (default value) if you do not want to receive the description in English if the language requested is not available.
lastUpdateTimestringSpecifying this parameter limits the results to those modified or added after the date specified. The required format is YYYY-MM-DD.

HEADERS

KeyDatatypeRequiredDescription
Api-keystringAPI Key used in the request
X-SignaturestringSHA256 hash in Hex format from your API Key, your secret plus current timestamps in seconds
AcceptstringDefines response format, posible values: application/xml, application/json
Accept-EncodingstringDefines type of encoding used on the data