otelz.CM.OTAV2

<back to all web services

OTA_HotelProductRQ

OTA_HotelProductRQ is used to obtain a list of all valid room type and rate plan combinations for a given hotel.

The following routes are available for this service:
POST/api/ota_hotelproductrq/
OTA_HotelProductRQ Parameters:
NameParameterData TypeRequiredDescription
HotelbodyHotelSimpleNo
OtelzBaseRequest Parameters:
NameParameterData TypeRequiredDescription
LangquerystringNoDesired language of the response. Currently just 'tr' is supported.

Allowable Values

  • tr
ConversationTimequerystringNoTimestamp of the request message.

Allowable Values

  • 2019-07-17T07:40:05.068Z
ConversationIdquerystringNoA reference for additional message identification, assigned by the requesting host system.It will be echoed in the correlating response when provided in the request.

Allowable Values

  • 41433c0b-77ea-40e5-8368-d79f15afc01e
HotelSimple Parameters:
NameParameterData TypeRequiredDescription
IdquerystringNoHotel identifier

Allowable Values

  • 6361
OTA_HotelProductRS Parameters:
NameParameterData TypeRequiredDescription
RoomTypesformList<RoomTypeForProduct>No
OtelzBaseResponse Parameters:
NameParameterData TypeRequiredDescription
SuccessformstringNo
ErrorsformList<Error>No
WarningsformList<Warning>No
ConversationIdformstringNo
ConversationTimeformstringNo
ConfirmedTimeformstringNo
Error Parameters:
NameParameterData TypeRequiredDescription
TypeformstringNo
CodeformstringNo
TextformstringNo
Warning Parameters:
NameParameterData TypeRequiredDescription
CodeformstringNo
TextformstringNo
RoomTypeForProduct Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo
CodeformstringNo
NameformstringNo
Capacityformint?No
CapacityAdultformint?No
CapacityChildformint?No
StatusformstringNo
MealPlansformList<MealPlanForProduct>No
MealPlanForProduct Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo
CodeformstringNo
NameformstringNo
RatePlansformList<RatePlanForProduct>No
RatePlanForProduct Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo
CodeformstringNo
NameformstringNo
AdultsformintNo
ChildrenformintNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /api/ota_hotelproductrq/ HTTP/1.1 
Host: cm-integration.otelz.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"Hotel":{"Id":"String"},"Lang":"String","ConversationTime":"String","ConversationId":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"RoomTypes":[{"Id":"String","Code":"String","Name":"String","Capacity":0,"CapacityAdult":0,"CapacityChild":0,"Status":"String","MealPlans":[{"Id":"String","Code":"String","Name":"String","RatePlans":[{"Id":"String","Code":"String","Name":"String","Adults":0,"Children":0}]}]}],"Success":"String","Errors":[{"Type":"String","Code":"String","Text":"String"}],"Warnings":[{"Code":"String","Text":"String"}],"ConversationId":"String","ConversationTime":"String","ConfirmedTime":"String"}