otelz.CM.OTAV2

<back to all web services

OTA_HotelRatePlanRQ

OTA_HotelRatePlanRQ is used to retrieve a list of rates.

The following routes are available for this service:
POST/api/ota_hotelrateplanrq/
OTA_HotelRatePlanRQ Parameters:
NameParameterData TypeRequiredDescription
HotelRatePlanRequestsbodyList<HotelRatePlanRequest>No
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
HotelRatePlanRequest Parameters:
NameParameterData TypeRequiredDescription
FromformstringNo

Allowable Values

  • 2019-07-01
ToformstringNo

Allowable Values

  • 2019-07-02
RoomTypeCandidatesformList<RoomTypeCandidate>No
RatePlanCandidatesformList<RatePlanCandidate>No
RoomTypeCandidate Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo

Allowable Values

  • 15344
RatePlanCandidate Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo

Allowable Values

  • 3
HotelSimple Parameters:
NameParameterData TypeRequiredDescription
IdquerystringNoHotel identifier

Allowable Values

  • 6361
OTA_HotelRatePlanRS Parameters:
NameParameterData TypeRequiredDescription
AvailRatesformList<AvailRateForRateGet>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
AvailRateForRateGet Parameters:
NameParameterData TypeRequiredDescription
DateformstringNo
RoomTypesformList<RoomTypeForRateGet>No
RoomTypeForRateGet Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo
CodeformstringNo
NameformstringNo
RatePlansformList<RatePlanForRateGet>No
RatePlanForRateGet Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo
CodeformstringNo
NameformstringNo
RateformdecimalNo
CurrencyformstringNo

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_hotelrateplanrq/ HTTP/1.1 
Host: cm-integration.otelz.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"HotelRatePlanRequests":[{"From":"String","To":"String","RoomTypes":[{"Id":"String"}],"RatePlans":[{"Id":"String"}]}],"Hotel":{"Id":"String"},"Lang":"String","ConversationTime":"String","ConversationId":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"AvailRates":[{"Date":"String","RoomTypes":[{"Id":"String","Code":"String","Name":"String","RatePlans":[{"Id":"String","Code":"String","Name":"String","Rate":0,"Currency":"String"}]}]}],"Success":"String","Errors":[{"Type":"String","Code":"String","Text":"String"}],"Warnings":[{"Code":"String","Text":"String"}],"ConversationId":"String","ConversationTime":"String","ConfirmedTime":"String"}