otelz.CM.OTAV2

<back to all web services

OTA_HotelBookingRuleNotifRQ

The OTA_HotelBookingRuleNotifRQ is the message that sends the notification of the rules and restrictions affecting the availability status of the hotel.

The following routes are available for this service:
POST/api/ota_hotelbookingrulenotifrq/
OTA_HotelBookingRuleNotifRQ Parameters:
NameParameterData TypeRequiredDescription
RuleMessagesbodyList<RuleMessageForRuleUpdate>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
RuleMessageForRuleUpdate Parameters:
NameParameterData TypeRequiredDescription
DateRangeformDateRangeNo
RoomTypesformList<RoomTypeForRuleUpdate>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
RoomTypeForRuleUpdate Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo

Allowable Values

  • 15344
ClosedformboolNo

Allowable Values

  • false
MealPlansformList<MealPlanForRuleUpdate>No
MealPlanForRuleUpdate Parameters:
NameParameterData TypeRequiredDescription
IdquerystringNoSpecifies the rate plan ID.

Allowable Values

  • 3
CodequerystringNoSpecifies the rate plan code.

Allowable Values

  • BB
NamequerystringNoSpecifies the rate plan name.

Allowable Values

  • Bed and Breakfast
ClosedqueryboolNoSpecifies whether the rate plan is closed.

Allowable Values

  • false
BookingOffsetqueryint?NoSpecifies how many days in advance a reservation will be accepted based on the day.If you select 3 days for a date, bookings with the corresponding day of arrival will be accepted if made at least 3 days in advance.

Allowable Values

  • 1
RuleformRuleNo
Rule Parameters:
NameParameterData TypeRequiredDescription
MinLOSqueryint?NoDetermines the minimum stay based on the day.If you choose 3 for a date, bookings with that date will be accepted if at least 3 nights.

Allowable Values

  • 1
MaxLOSqueryint?NoDetermines the minimum stay based on the day. If you select 3 for a date, bookings with that date will be accepted for a maximum of 3 nights.

Allowable Values

  • 3
MinSAqueryint?NoDetermines minimum stay based on check-in day. If you select 3 for a date, bookings with the date of arrival at least 3 nights will be accepted.

Allowable Values

  • 3
MaxSAqueryint?NoDetermines maximum stay based on departure day. If you select 3 for a date, bookings on the date of departure will be accepted for a maximum of 3 nights.

Allowable Values

  • 3
CtaquerystringNoReservations are not permitted on the day of check-in for rooms or hostels that you choose to be closed.

Allowable Values

  • true
  • false
CtdquerystringNoReservations are not permitted on the day of departure for the rooms or hostels that you have selected as closed.

Allowable Values

  • true
  • false
HotelSimple Parameters:
NameParameterData TypeRequiredDescription
IdquerystringNoHotel identifier

Allowable Values

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

{"RuleMessages":[{"DateRange":{"From":"String","To":"String","Mon":false,"Tue":false,"Wed":false,"Thu":false,"Fri":false,"Sat":false,"Sun":false},"RoomTypes":[{"Id":"String","Closed":false,"MealPlans":[{"Id":"String","Code":"String","Name":"String","Closed":false,"BookingOffset":0,"Rule":{"MinLOS":0,"MaxLOS":0,"MinSA":0,"MaxSA":0,"Cta":"String","Ctd":"String"}}]}]}],"Hotel":{"Id":"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"}