CenResService

<back to all web services

HotelPackage

The following routes are available for this service:
POST/HotelPackage/{SubscriptionId}/{CendynPropertyId}
HotelPackage Parameters:
NameParameterData TypeRequiredDescription
PackagebodyPackageNo
SubscriptionIdpathstringNo
CendynPropertyIdpathstringNo
Package Parameters:
NameParameterData TypeRequiredDescription
ExternalIDformstringNo
CendynPropertyIDformstringNo
HotelCodeformstringNo
PackageCodeformstringNo
PackageDescriptionformstringNo
ShortDescriptionformstringNo
ForecastGroupformstringNo
PrintSeparatelyformbool?No
AddToRateformbool?No
PriceAmountformdecimal?No
TaxIncludedformbool?No
CurrencyCodeformstringNo
SellSeparateformbool?No
PostNextDayformbool?No
ForecastNextDayformbool?No
CateringPackageformbool?No
Redemptionformbool?No
OverrideFixedRateformbool?No
CalculationRuleformstringNo
PostingRhythmformstringNo
PackageElementformstringNo
AddToRateModeformstringNo
IsActiveformboolNo
InactiveDateformDateTime?No
SourceNameformstringNo
SourceIDformstringNo
ActionformstringNo
PackageDetailsformList<PackageDetail>No
PackageItemsformList<PackageItem>No
PackageDetail Parameters:
NameParameterData TypeRequiredDescription
StartDateformDateTime?No
EndDateformDateTime?No
PriceAmountformdecimal?No
POSAllowanceformdecimal?No
PointsTotalformint?No
ActionformstringNo
AmountBeforeTaxformdecimal?No
AmountAfterTaxformdecimal?No
ItemNameformstringNo
Quantityformint?No
CodeformstringNo
ItemIdformstringNo
ShowInReservationformbool?No
UseInCRSformbool?No
AddToRateformbool?No
IsFixedChargeformbool?No
RecurrenceformstringNo
RelationformstringNo
Mondayformbool?No
Tuesdayformbool?No
Wednesdayformbool?No
Thursdayformbool?No
Fridayformbool?No
Saturdayformbool?No
Sundayformbool?No
PackageItem Parameters:
NameParameterData TypeRequiredDescription
ItemNameformstringNo
Quantityformint?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 /HotelPackage/{SubscriptionId}/{CendynPropertyId} HTTP/1.1 
Host: cert.cendyn.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"package":{"externalID":"String","cendynPropertyID":"String","hotelCode":"String","packageCode":"String","packageDescription":"String","shortDescription":"String","forecastGroup":"String","printSeparately":false,"addToRate":false,"priceAmount":0,"taxIncluded":false,"currencyCode":"String","sellSeparate":false,"postNextDay":false,"forecastNextDay":false,"cateringPackage":false,"redemption":false,"overrideFixedRate":false,"calculationRule":"String","postingRhythm":"String","packageElement":"String","addToRateMode":"String","isActive":false,"inactiveDate":"0001-01-01T00:00:00.0000000","sourceName":"String","sourceID":"String","action":"String","packageDetails":[{"startDate":"0001-01-01T00:00:00.0000000","endDate":"0001-01-01T00:00:00.0000000","priceAmount":0,"posAllowance":0,"pointsTotal":0,"action":"String","amountBeforeTax":0,"amountAfterTax":0,"itemName":"String","quantity":0,"code":"String","itemId":"String","showInReservation":false,"useInCRS":false,"addToRate":false,"isFixedCharge":false,"recurrence":"String","relation":"String","monday":false,"tuesday":false,"wednesday":false,"thursday":false,"friday":false,"saturday":false,"sunday":false}],"packageItems":[{"itemName":"String","quantity":0}]},"subscriptionId":"String","cendynPropertyId":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

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