| POST | /api/ota_hotelbookingrulerq/ | 
|---|
| Name | Parameter | Data Type | Required | Description | 
|---|---|---|---|---|
| HotelBookingRuleRequests | body | List<HotelBookingRuleRequest> | No | |
| Hotel | body | HotelSimple | No | 
| Name | Parameter | Data Type | Required | Description | 
|---|---|---|---|---|
| Lang | query | string | No | Desired language of the response. Currently just 'tr' is supported.Allowable Values
  | 
| ConversationTime | query | string | No | Timestamp of the request message.Allowable Values
  | 
| ConversationId | query | string | No | A 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
  | 
| Name | Parameter | Data Type | Required | Description | 
|---|---|---|---|---|
| From | form | string | No | Allowable Values
  | 
| To | form | string | No | Allowable Values
  | 
| RoomTypeCandidates | form | List<RoomTypeCandidate> | No | |
| MealPlanCandidates | form | List<MealPlanCandidate> | No | 
| Name | Parameter | Data Type | Required | Description | 
|---|---|---|---|---|
| Id | form | string | No | Allowable Values
  | 
| Name | Parameter | Data Type | Required | Description | 
|---|---|---|---|---|
| Id | form | string | No | Allowable Values
  | 
| Name | Parameter | Data Type | Required | Description | 
|---|---|---|---|---|
| Id | query | string | No | Hotel identifierAllowable Values
  | 
| Name | Parameter | Data Type | Required | Description | 
|---|---|---|---|---|
| RuleMessages | form | List<RuleMessageForRuleGet> | No | 
| Name | Parameter | Data Type | Required | Description | 
|---|---|---|---|---|
| Success | form | string | No | |
| Errors | form | List<Error> | No | |
| Warnings | form | List<Warning> | No | |
| ConversationId | form | string | No | |
| ConversationTime | form | string | No | |
| ConfirmedTime | form | string | No | 
| Name | Parameter | Data Type | Required | Description | 
|---|---|---|---|---|
| Type | form | string | No | |
| Code | form | string | No | |
| Text | form | string | No | 
| Name | Parameter | Data Type | Required | Description | 
|---|---|---|---|---|
| Code | form | string | No | |
| Text | form | string | No | 
| Name | Parameter | Data Type | Required | Description | 
|---|---|---|---|---|
| Date | form | string | No | |
| RoomTypes | form | List<RoomTypeForRuleGet> | No | 
| Name | Parameter | Data Type | Required | Description | 
|---|---|---|---|---|
| Id | form | string | No | |
| Name | form | string | No | |
| Status | form | string | No | |
| Closed | form | bool | No | |
| MealPlans | form | List<MealPlanForRuleGet> | No | 
| Name | Parameter | Data Type | Required | Description | 
|---|---|---|---|---|
| Id | form | string | No | Allowable Values
  | 
| Code | form | string | No | Allowable Values
  | 
| Name | form | string | No | Allowable Values
  | 
| Closed | form | bool | No | Allowable Values
  | 
| BookingOffset | form | int? | No | Allowable Values
  | 
| Rule | form | Rule | No | 
| Name | Parameter | Data Type | Required | Description | 
|---|---|---|---|---|
| MinLOS | query | int? | No | Determines 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
  | 
| MaxLOS | query | int? | No | Determines 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
  | 
| MinSA | query | int? | No | Determines 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
  | 
| MaxSA | query | int? | No | Determines 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
  | 
| Cta | query | string | No | Reservations are not permitted on the day of check-in for rooms or hostels that you choose to be closed.Allowable Values
  | 
| Ctd | query | string | No | Reservations are not permitted on the day of departure for the rooms or hostels that you have selected as closed.Allowable Values
  | 
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
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /api/ota_hotelbookingrulerq/ HTTP/1.1 
Host: cm-integration.otelz.com 
Accept: application/json
Content-Type: application/json
Content-Length: length
{"HotelBookingRuleRequests":[{"From":"String","To":"String","RoomTypes":[{"Id":"String"}],"MealPlans":[{"Id":"String"}]}],"Hotel":{"Id":"String"},"Lang":"String","ConversationTime":"String","ConversationId":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"RuleMessages":[{"Date":"String","RoomTypes":[{"Id":"String","Name":"String","Status":"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"}}]}]}],"Success":"String","Errors":[{"Type":"String","Code":"String","Text":"String"}],"Warnings":[{"Code":"String","Text":"String"}],"ConversationId":"String","ConversationTime":"String","ConfirmedTime":"String"}