CenResService

<back to all web services

HotelInventoryRestriction

The following routes are available for this service:
POST/hotelinventoryrestriction/{SubscriptionId}/{CendynPropertyId}
HotelInventoryRestriction Parameters:
NameParameterData TypeRequiredDescription
InventoryRestrictionbodyInventoryRestrictionNo
SubscriptionIdpathstringNo
CendynPropertyIdpathstringNo
InventoryRestriction Parameters:
NameParameterData TypeRequiredDescription
HotelCodeformstringNo
RestrictionTypeformstringNo
RestrictionCodeformstringNo
RestrictRateByformstringNo
RestrictRoomByformstringNo
RateCodeformstringNo
RoomCodeformstringNo
RoomClassformstringNo
StartDateformDateTimeNo
EndDateformDateTimeNo
Availableformbool?No
MinLOSformint?No
MinLOSThruStayformint?No
MaxLOSformint?No
MaxLOSThruStayformint?No
ClosedToArrivalformbool?No
ClosedToDepartureformbool?No
IncludeMondayformbool?No
IncludeTuesdayformbool?No
IncludeWednesdayformbool?No
IncludeThursdayformbool?No
IncludeFridayformbool?No
IncludeSaturdayformbool?No
IncludeSundayformbool?No
SourceNameformstringNo
SourceIDformstringNo
Response Parameters:
NameParameterData TypeRequiredDescription
StatusCodeformstringNo
RecordCountformintNo
ErrorCountformintNo

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 /hotelinventoryrestriction/{SubscriptionId}/{CendynPropertyId} HTTP/1.1 
Host: cert.cendyn.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"inventoryRestriction":{"hotelCode":"String","restrictionType":"String","restrictionCode":"String","restrictRateBy":"String","restrictRoomBy":"String","rateCode":"String","roomCode":"String","roomClass":"String","startDate":"0001-01-01T00:00:00.0000000","endDate":"0001-01-01T00:00:00.0000000","available":false,"minLOS":0,"minLOSThruStay":0,"maxLOS":0,"maxLOSThruStay":0,"closedToArrival":false,"closedToDeparture":false,"includeMonday":false,"includeTuesday":false,"includeWednesday":false,"includeThursday":false,"includeFriday":false,"includeSaturday":false,"includeSunday":false,"sourceName":"String","sourceID":"String"},"subscriptionId":"String","cendynPropertyId":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"statusCode":"String","recordCount":0,"errorCount":0}