CenResService

<back to all web services

HotelRate

The following routes are available for this service:
POST/hotelrate/{SubscriptionId}/{CendynPropertyId}
HotelRate Parameters:
NameParameterData TypeRequiredDescription
RateContainerbodyRateContainerNo
SubscriptionIdpathstringNo
CendynPropertyIdpathstringNo
RateContainer Parameters:
NameParameterData TypeRequiredDescription
EchoTokenformstringNo
RateTypeformRateTypeNo
ChangeActionformstringNo
RatesformList<Rate>No
RateType Parameters:
NameParameterData TypeRequiredDescription
HotelCodeformstringNo
RateCodeformstringNo
RateCategoryformstringNo
RateNameformstringNo
StartDateformDateTime?No
EndDateformDateTime?No
RateStatusformstringNo
BaseRateCodeformstringNo
MarketCodeformstringNo
Confidentialformbool?No
MealsIncludedformbool?No
TaxIncludedIndicatorformstringNo
RateCategoryDescriptionformstringNo
DisplayTextformstringNo
ShortDescriptionformstringNo
LongDescriptionformstringNo
MinLOSformint?No
SourceNameformstringNo
SourceIDformstringNo
RateAdjustDirectionformstringNo
RateAdjustAmountformdecimal?No
RateAdjustPercentformdecimal?No
CurrencyCodeformstringNo
IsDailyformboolNo
IsActiveformboolNo
InactiveDateformDateTime?No
Rate Parameters:
NameParameterData TypeRequiredDescription
HotelCodeformstringNo
RateCodeformstringNo
RoomCodeformstringNo
StartDateformDateTimeNo
EndDateformDateTimeNo
Rate1formdecimal?No
Rate2formdecimal?No
Rate3formdecimal?No
Rate4formdecimal?No
ExtraAdultformdecimal?No
ExtraChildformdecimal?No
ExtraBedformdecimal?No
CurrencyCodeformstringNo
FreeChildLimitformint?No
IncludeMondayformbool?No
IncludeTuesdayformbool?No
IncludeWednesdayformbool?No
IncludeThursdayformbool?No
IncludeFridayformbool?No
IncludeSaturdayformbool?No
IncludeSundayformbool?No
CustomerSegmentformstringNo
SourceNameformstringNo
SourceIDformstringNo
IsActiveformboolNo
InactiveDateformDateTime?No
RateSetIDformstringNo
RateChargeDetailsformList<RateChargeDetail>No
RateGuestCountDetailsformList<RateGuestCountDetail>No
RateChargeDetail Parameters:
NameParameterData TypeRequiredDescription
ChargeCodeformstringNo
IsBaseRateformboolNo
RateBeforeTaxformdecimal?No
RateAfterTaxformdecimal?No
UnitCountformintNo
TaxAmountformdecimal?No
RateGuestCountDetail Parameters:
NameParameterData TypeRequiredDescription
GuestCountformintNo
MinRateformdecimal?No
MaxRateformdecimal?No
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 /hotelrate/{SubscriptionId}/{CendynPropertyId} HTTP/1.1 
Host: cert.cendyn.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"rateContainer":{"echoToken":"String","rateType":{"hotelCode":"String","rateCode":"String","rateCategory":"String","rateName":"String","startDate":"0001-01-01T00:00:00.0000000","endDate":"0001-01-01T00:00:00.0000000","rateStatus":"String","baseRateCode":"String","marketCode":"String","confidential":false,"mealsIncluded":false,"taxIncludedIndicator":"String","rateCategoryDescription":"String","displayText":"String","shortDescription":"String","longDescription":"String","minLOS":0,"sourceName":"String","sourceID":"String","rateAdjustDirection":"String","rateAdjustAmount":0,"rateAdjustPercent":0,"currencyCode":"String","isDaily":false,"isActive":false,"inactiveDate":"0001-01-01T00:00:00.0000000"},"changeAction":"String","rates":[{"hotelCode":"String","rateCode":"String","roomCode":"String","startDate":"0001-01-01T00:00:00.0000000","endDate":"0001-01-01T00:00:00.0000000","rate1":0,"rate2":0,"rate3":0,"rate4":0,"extraAdult":0,"extraChild":0,"extraBed":0,"currencyCode":"String","freeChildLimit":0,"includeMonday":false,"includeTuesday":false,"includeWednesday":false,"includeThursday":false,"includeFriday":false,"includeSaturday":false,"includeSunday":false,"customerSegment":"String","sourceName":"String","sourceID":"String","isActive":false,"inactiveDate":"0001-01-01T00:00:00.0000000","rateSetID":"String","rateChargeDetails":[{"chargeCode":"String","isBaseRate":false,"rateBeforeTax":0,"rateAfterTax":0,"unitCount":0,"taxAmount":0}],"rateGuestCountDetails":[{"guestCount":0,"minRate":0,"maxRate":0}]}]},"subscriptionId":"String","cendynPropertyId":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

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