otelz.CM.OTAV2

<back to all web services

OTA_HotelRoomBasedRateAmountNotifRQ

OTA_HotelRoomBasedRateAmountNotifRQ is used to provide a notification of a new room-based rate plan created for a hotel and to synchronize the room-based rate plan between the PMS and OTELZ

The following routes are available for this service:
POST/api/ota_hotelroombasedrateamountnotifrq/
OTA_HotelRoomBasedRateAmountNotifRQ Parameters:
NameParameterData TypeRequiredDescription
RateAmountMessagesbodyList<RateAmountMessageForRoomBasedRateUpdate>No
HotelbodyHotelNo
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
RateAmountMessageForRoomBasedRateUpdate Parameters:
NameParameterData TypeRequiredDescription
DateRangeformDateRangeNo
RoomTypesformList<RoomTypeForRoomBasedRateUpdate>No
DateRange Parameters:
NameParameterData TypeRequiredDescription
FromformstringNo

Allowable Values

  • 2019-08-10
ToformstringNo

Allowable Values

  • 2019-08-11
MonformboolNo

Allowable Values

  • true
TueformboolNo

Allowable Values

  • true
WedformboolNo

Allowable Values

  • true
ThuformboolNo

Allowable Values

  • true
FriformboolNo

Allowable Values

  • true
SatformboolNo

Allowable Values

  • true
SunformboolNo

Allowable Values

  • true
RoomTypeForRoomBasedRateUpdate Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo

Allowable Values

  • 15344
RatePlansformList<RatePlanForRoomBasedRateUpdate>No
RatePlanForRoomBasedRateUpdate Parameters:
NameParameterData TypeRequiredDescription
MealPlanIdformstringNo

Allowable Values

  • 8
RateformdecimalNo
CurrencyCodequerystringNoSpecifies currency of the rate.

Allowable Values

  • TRY
  • EUR
  • USD
  • GBP
Hotel Parameters:
NameParameterData TypeRequiredDescription
IdquerystringNoHotel identifier

Allowable Values

  • 6361
CurrencyquerystringNoSets the main currency of rates. Besides rates can have specific currency values.

Allowable Values

  • TRY
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

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

{"RateAmountMessages":[{"DateRange":{"From":"String","To":"String","Mon":false,"Tue":false,"Wed":false,"Thu":false,"Fri":false,"Sat":false,"Sun":false},"RoomTypes":[{"Id":"String","RatePlans":[{"MealPlanId":"String","Rate":0,"CurrencyCode":"String"}]}]}],"Hotel":{"Id":"String","Currency":"String"},"Lang":"String","ConversationTime":"String","ConversationId":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"Success":"String","Errors":[{"Type":"String","Code":"String","Text":"String"}],"Warnings":[{"Code":"String","Text":"String"}],"ConversationId":"String","ConversationTime":"String","ConfirmedTime":"String"}