CenResService

<back to all web services

HotelInventoryBlock

The following routes are available for this service:
POST/hotelinventoryblock/{SubscriptionId}/{CendynPropertyId}
HotelInventoryBlock Parameters:
NameParameterData TypeRequiredDescription
InventoryBlockbodyInventoryBlockNo
SubscriptionIdpathstringNo
CendynPropertyIdpathstringNo
InventoryBlock Parameters:
NameParameterData TypeRequiredDescription
CendynPropertyIDformstringNo
HotelCodeformstringNo
ActionCodeformstringNo
BlockNameformstringNo
BlockCodeTypeformstringNo
BlockTypeformstringNo
InventoryBlockStatusformstringNo
GroupingCodeformstringNo
BlockCodesformstringNo
DescriptionformstringNo
ResortAllotmentIdformstringNo
BlockStartDateformDateTimeNo
BlockEndDateformDateTimeNo
MarketCodeformstringNo
SourceCodeformstringNo
ChannelCodeformstringNo
CutOffStartDateformDateTime?No
CutOffEndDateformDateTime?No
PriceViewableformbool?No
AverageRateformdecimal?No
PickupCompleteformbool?No
CommentsformstringNo
LostReasonformstringNo
ExternalIDformstringNo
SourceNameformstringNo
SourceIDformstringNo
SourceDateCreatedformDateTime?No
SourceCreateUserformstringNo
SourceDateUpdatedformDateTime?No
SourceUpdateUserformstringNo
IsActiveformboolNo
InactiveDateformDateTime?No
RecordStatusformstringNo
InventoryBlockEventsformList<InventoryBlockEvent>No
InventoryBlockRatesformList<InventoryBlockRate>No
ProfilesformList<Profile>No
InventoryBlockEvent Parameters:
NameParameterData TypeRequiredDescription
CendynPropertyIDformstringNo
HotelCodeformstringNo
InventoryCodeformstringNo
EventStartDateformDateTimeNo
EventEndDateformDateTimeNo
EventNameformstringNo
EventClassificationformstringNo
EventBookedDateformDateTime?No
EventStatusformstringNo
RoomSetupCodeformstringNo
RoomSetupDescriptionformstringNo
RoomSetupCapacityformint?No
ExpectedAttendanceformint?No
ExpectedRevenueformdecimal?No
FoodRevenueformdecimal?No
BeverageRevenueformdecimal?No
RoomRevenueformdecimal?No
ResourceRevenueformdecimal?No
OtherRevenueformdecimal?No
CommentsformstringNo
ExternalIDformstringNo
SourceDateCreatedformDateTime?No
SourceCreateUserformstringNo
SourceDateUpdatedformDateTime?No
SourceUpdateUserformstringNo
IsActiveformboolNo
InactiveDateformDateTime?No
RecordStatusformstringNo
InventoryBlockRate Parameters:
NameParameterData TypeRequiredDescription
CendynPropertyIDformstringNo
HotelCodeformstringNo
InventoryCodeformstringNo
BlockCountformintNo
InventoryDayformDateTimeNo
Rate1formdecimal?No
Rate2formdecimal?No
Rate3formdecimal?No
Rate4formdecimal?No
ExtraAdultformdecimal?No
ExtraChildformdecimal?No
BlocksSoldformint?No
RoomsContractedformint?No
RoomsReservedformint?No
IsActiveformboolNo
InactiveDateformDateTime?No
RoomBlockIDformstringNo
RoomBlockNameformstringNo
RoomBlockStatusformstringNo
RecordStatusformstringNo
Profile Parameters:
NameParameterData TypeRequiredDescription
CendynPropertyIDformstringNo
PropertyNameformstringNo
UniqueIDsformList<UniqueIDType>No
ProfileTypeCodeformstringNo
ProfileTypeDescriptionformstringNo
NameCodeformstringNo
ProfileTypeCategoryformstringNo
JobTitleformstringNo
SalutationformstringNo
FirstNameformstringNo
FamiliarNameformstringNo
MiddleNameformstringNo
LastNameformstringNo
FullNameformstringNo
NameSuffixformstringNo
VIPIDformstringNo
VIPCodeformstringNo
PrimaryLanguageformstringNo
GenderCodeformstringNo
DOBYearformstringNo
DOBMonthformstringNo
DOBDayOfMonthformstringNo
CompanyNameformstringNo
ARNumberformstringNo
AllowMailformbool?No
AllowEMailformbool?No
GuestPrivformbool?No
AllowPhoneformbool?No
AllowSMSformbool?No
AllowHistoryformbool?No
AllowMarketResearchformbool?No
AllowThirdPartyformbool?No
AllowLoyaltyProgramformbool?No
CreatorCodeformstringNo
LastUpdaterCodeformstringNo
DateProfileCreatedformDateTime?No
DateProfileUpdatedformDateTime?No
InactiveDateformDateTime?No
NationalityformstringNo
ResortCodeformstringNo
RetiredProfileIdformstringNo
TransferredSubscriptionIdformstringNo
SourceNameformstringNo
SourceIDformstringNo
OptOutMarketingformbool?No
OptOutDateformDateTime?No
ProfileExtensionformProfileExtensionNo
AddressesformList<Address>No
MembershipsformList<Membership>No
ContactMethodsformList<ContactMethod>No
ActionCommentsformList<ActionComment>No
SpecialRequestsformList<SpecialRequest>No
UDFDataCollectionformList<UDFDataType>No
LeadformLeadNo
RelatedTravelersformList<RelatedTraveler>No
DocumentsformList<Document>No
VouchersformList<Voucher>No
ProfilePoliciesformList<ProfilePolicy>No
UniqueIDType Parameters:
NameParameterData TypeRequiredDescription
IDformstringNo
TypeformstringNo
ContextformstringNo
ProfileExtension Parameters:
NameParameterData TypeRequiredDescription
LanguageCodeformstringNo
SalutationExtformstringNo
FirstNameExtformstringNo
FamiliarNameExtformstringNo
MiddleNameExtformstringNo
LastNameExtformstringNo
NameSuffixExtformstringNo
CompanyNameExtformstringNo
BlacklistformstringNo
BlackListMessageformstringNo
AnonymizationStatusformstringNo
Address Parameters:
NameParameterData TypeRequiredDescription
AddressTypeCodeformstringNo
AddressTypeDescriptionformstringNo
AddressStatusformstringNo
AttnformstringNo
Address1formstringNo
Address2formstringNo
CityformstringNo
StateProvinceformstringNo
PostalCodeformstringNo
CountryCodeformstringNo
IsPrimaryformbool?No
AddressLanguageformstringNo
AddressCleansedformbool?No
OptOutMarketingformbool?No
OptOutDateformDateTime?No
Membership Parameters:
NameParameterData TypeRequiredDescription
ExternalIDformstringNo
ProgramCodeformstringNo
MembershipIDformstringNo
MembershipCategoryformstringNo
MembershipNameformstringNo
MembershipLevelformstringNo
MembershipStatusformstringNo
EnrollmentCodeformstringNo
DateMembershipStartsformDateTime?No
DateMembershipExpiresformDateTime?No
TotalStaysformint?No
AwardCreditsformint?No
AwardAvailableformint?No
PrimaryAirlineformbool?No
DisplaySequenceformint?No
SourceNameformstringNo
SourceIDformstringNo
IsActiveformboolNo
InactiveDateformDateTime?No
PointsIndicatorformbool?No
ContactMethod Parameters:
NameParameterData TypeRequiredDescription
TypeformstringNo
CategoryformstringNo
DataValueformstringNo
ExtraDataformstringNo
OptOutformbool?No
SourceDateformDateTime?No
IsPrimaryformbool?No
Confirmationformbool?No
InactiveDateformDateTime?No
OptOutMarketingformbool?No
OptOutDateformDateTime?No
ActionComment Parameters:
NameParameterData TypeRequiredDescription
ExternalIDformstringNo
CommentTypeformstringNo
CommentTitleformstringNo
CommentClassformstringNo
ActionTypeformstringNo
CommentformstringNo
ActionDateformDateTime?No
InactiveDateformDateTime?No
GuestViewableformbool?No
CreatorCodeformstringNo
DateCommentCreatedformDateTime?No
ResortCodeformstringNo
SpecialRequest Parameters:
NameParameterData TypeRequiredDescription
ExternalIDformstringNo
RequestTypeformstringNo
RequestCodeformstringNo
RequestCommentsformstringNo
ResortFieldformstringNo
ActionTypeCodeformstringNo
ActionTypeformstringNo
InactiveDateformDateTime?No
UDFDataType Parameters:
NameParameterData TypeRequiredDescription
CendynPropertyIDformstringNo
ModuleNameformstringNo
TableNameformstringNo
ColumnNameformstringNo
UDFValueformstringNo
Lead Parameters:
NameParameterData TypeRequiredDescription
FK_ReservationformGuid?No
ExternalLeadIDformstringNo
ExternalLeadSourceformstringNo
LeadStatusformstringNo
LeadAcquiredformDateTime?No
TentativeStartDateformDateTime?No
TentativeEndDateformDateTime?No
AssignedAgentformstringNo
AssignedDateformDateTime?No
ContactMethodformstringNo
ContactAgentformstringNo
ContactDateformDateTime?No
LastFollowupMethodformstringNo
LastFollowupAgentformstringNo
LastFollowupDateformDateTime?No
BookingMethodformstringNo
BookingAgentformstringNo
BookingDateformDateTime?No
ReasonforStayformstringNo
MarketCodeformstringNo
CampaignCodeformstringNo
CampaignNameformstringNo
PriceEstimateformdecimal?No
FlaggedForAttentionformbool?No
RelatedTraveler Parameters:
NameParameterData TypeRequiredDescription
CendynPropertyIDformstringNo
PropertyNameformstringNo
UniqueIDsformList<UniqueIDType>No
SalutationformstringNo
FirstNameformstringNo
FamiliarNameformstringNo
MiddleNameformstringNo
LastNameformstringNo
FullNameformstringNo
SuffixformstringNo
RelationformstringNo
IsPrimaryformbool?No
Document Parameters:
NameParameterData TypeRequiredDescription
DocumentIDformstringNo
DocumentTypeformstringNo
DocumentSourceformstringNo
CodeOnDocumentformstringNo
DocumentNotesformstringNo
NameOnDocumentformstringNo
NationalityOnDocumentformstringNo
EffectiveDateformDateTime?No
ExpirationDateformDateTime?No
IssuerformstringNo
IssuerCountryformstringNo
IsPrimaryformbool?No
PII_StoredAsformstringNo
InactiveDateformDateTime?No
Voucher Parameters:
NameParameterData TypeRequiredDescription
HotelCodeformstringNo
VoucherIDformstringNo
VoucherID2formstringNo
AppliedToResortformstringNo
ReservationIDformstringNo
ProfileIDRecipientformstringNo
SubscriberIDRecipientformstringNo
RecipientNameformstringNo
EmailaddressformstringNo
ProfileIDPurchaserformstringNo
PurchaserNameformstringNo
VoucherStatusformstringNo
VoucherTypeformstringNo
MembershipTypeformstringNo
CertCodeformstringNo
CertNoformstringNo
ShortDescriptionformstringNo
GiftMessageformstringNo
CommentsformstringNo
VoucherAmountformdecimal?No
CurrencyCodeformstringNo
IssueTypeformstringNo
DateConsumedformDateTime?No
ExpirationDateformDateTime?No
AwardPointsformint?No
RuleTypeformstringNo
RuleValueformstringNo
CancelAllowedformbool?No
MaxExtensionsformint?No
ReferenceTypeformstringNo
ReferenceIDformstringNo
PromotionCodeformstringNo
ReservationConsumedformbool?No
WebConsumedformbool?No
PMSConsumedformbool?No
VerifyCertNoformbool?No
GenerateInLieuformbool?No
CreatorCodeformstringNo
LastUpdaterCodeformstringNo
FolioIDformstringNo
InactiveDateformDateTime?No
ProfilePolicy Parameters:
NameParameterData TypeRequiredDescription
PolicyTypeformstringNo
AttributeNameformstringNo
IntegerValueformint?No
StringValueformstringNo
EffectiveDateformDateTime?No
ExpirationDateformDateTime?No
CommentsformstringNo
ExternalIDformstringNo
AppliesToformstringNo
AppliesToDescriptorformstringNo
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 /hotelinventoryblock/{SubscriptionId}/{CendynPropertyId} HTTP/1.1 
Host: cert.cendyn.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"inventoryBlock":{"cendynPropertyID":"String","hotelCode":"String","actionCode":"String","blockName":"String","blockCodeType":"String","blockType":"String","inventoryBlockStatus":"String","groupingCode":"String","blockCodes":"String","description":"String","resortAllotmentId":"String","blockStartDate":"0001-01-01T00:00:00.0000000","blockEndDate":"0001-01-01T00:00:00.0000000","marketCode":"String","sourceCode":"String","channelCode":"String","cutOffStartDate":"0001-01-01T00:00:00.0000000","cutOffEndDate":"0001-01-01T00:00:00.0000000","priceViewable":false,"averageRate":0,"pickupComplete":false,"comments":"String","lostReason":"String","externalID":"String","sourceName":"String","sourceID":"String","sourceDateCreated":"0001-01-01T00:00:00.0000000","sourceCreateUser":"String","sourceDateUpdated":"0001-01-01T00:00:00.0000000","sourceUpdateUser":"String","isActive":false,"inactiveDate":"0001-01-01T00:00:00.0000000","recordStatus":"String","inventoryBlockEvents":[{"cendynPropertyID":"String","hotelCode":"String","inventoryCode":"String","eventStartDate":"0001-01-01T00:00:00.0000000","eventEndDate":"0001-01-01T00:00:00.0000000","eventName":"String","eventClassification":"String","eventBookedDate":"0001-01-01T00:00:00.0000000","eventStatus":"String","roomSetupCode":"String","roomSetupDescription":"String","roomSetupCapacity":0,"expectedAttendance":0,"expectedRevenue":0,"foodRevenue":0,"beverageRevenue":0,"roomRevenue":0,"resourceRevenue":0,"otherRevenue":0,"comments":"String","externalID":"String","sourceDateCreated":"0001-01-01T00:00:00.0000000","sourceCreateUser":"String","sourceDateUpdated":"0001-01-01T00:00:00.0000000","sourceUpdateUser":"String","isActive":false,"inactiveDate":"0001-01-01T00:00:00.0000000","recordStatus":"String"}],"inventoryBlockRates":[{"cendynPropertyID":"String","hotelCode":"String","inventoryCode":"String","blockCount":0,"inventoryDay":"0001-01-01T00:00:00.0000000","rate1":0,"rate2":0,"rate3":0,"rate4":0,"extraAdult":0,"extraChild":0,"blocksSold":0,"roomsContracted":0,"roomsReserved":0,"isActive":false,"inactiveDate":"0001-01-01T00:00:00.0000000","roomBlockID":"String","roomBlockName":"String","roomBlockStatus":"String","recordStatus":"String"}],"profiles":[{"cendynPropertyID":"String","propertyName":"String","uniqueIDs":[{"id":"String","type":"String","context":"String"}],"profileTypeCode":"String","profileTypeDescription":"String","nameCode":"String","profileTypeCategory":"String","jobTitle":"String","salutation":"String","firstName":"String","familiarName":"String","middleName":"String","lastName":"String","fullName":"String","nameSuffix":"String","vipid":"String","vipCode":"String","primaryLanguage":"String","genderCode":"String","dobYear":"String","dobMonth":"String","dobDayOfMonth":"String","companyName":"String","arNumber":"String","allowMail":false,"allowEMail":false,"guestPriv":false,"allowPhone":false,"allowSMS":false,"allowHistory":false,"allowMarketResearch":false,"allowThirdParty":false,"allowLoyaltyProgram":false,"creatorCode":"String","lastUpdaterCode":"String","dateProfileCreated":"0001-01-01T00:00:00.0000000","dateProfileUpdated":"0001-01-01T00:00:00.0000000","inactiveDate":"0001-01-01T00:00:00.0000000","nationality":"String","resortCode":"String","retiredProfileId":"String","transferredSubscriptionId":"String","sourceName":"String","sourceID":"String","optOutMarketing":false,"optOutDate":"0001-01-01T00:00:00.0000000","profileExtension":{"languageCode":"String","salutationExt":"String","firstNameExt":"String","familiarNameExt":"String","middleNameExt":"String","lastNameExt":"String","nameSuffixExt":"String","companyNameExt":"String","blacklist":"String","blackListMessage":"String","anonymizationStatus":"String"},"addresses":[{"addressTypeCode":"String","addressTypeDescription":"String","addressStatus":"String","attn":"String","address1":"String","address2":"String","city":"String","stateProvince":"String","postalCode":"String","countryCode":"String","isPrimary":false,"addressLanguage":"String","addressCleansed":false,"optOutMarketing":false,"optOutDate":"0001-01-01T00:00:00.0000000"}],"memberships":[{"externalID":"String","programCode":"String","membershipID":"String","membershipCategory":"String","membershipName":"String","membershipLevel":"String","membershipStatus":"String","enrollmentCode":"String","dateMembershipStarts":"0001-01-01T00:00:00.0000000","dateMembershipExpires":"0001-01-01T00:00:00.0000000","totalStays":0,"awardCredits":0,"awardAvailable":0,"primaryAirline":false,"displaySequence":0,"sourceName":"String","sourceID":"String","isActive":false,"inactiveDate":"0001-01-01T00:00:00.0000000","pointsIndicator":false}],"contactMethods":[{"type":"String","category":"String","dataValue":"String","extraData":"String","optOut":false,"sourceDate":"0001-01-01T00:00:00.0000000","isPrimary":false,"confirmation":false,"inactiveDate":"0001-01-01T00:00:00.0000000","optOutMarketing":false,"optOutDate":"0001-01-01T00:00:00.0000000"}],"actionComments":[{"externalID":"String","commentType":"String","commentTitle":"String","commentClass":"String","actionType":"String","comment":"String","actionDate":"0001-01-01T00:00:00.0000000","inactiveDate":"0001-01-01T00:00:00.0000000","guestViewable":false,"creatorCode":"String","dateCommentCreated":"0001-01-01T00:00:00.0000000","resortCode":"String"}],"specialRequests":[{"externalID":"String","requestType":"String","requestCode":"String","requestComments":"String","resortField":"String","actionTypeCode":"String","actionType":"String","inactiveDate":"0001-01-01T00:00:00.0000000"}],"udfDataCollection":[{"cendynPropertyID":"String","moduleName":"String","tableName":"String","columnName":"String","udfValue":"String"}],"lead":{"fK_Reservation":"00000000000000000000000000000000","externalLeadID":"String","externalLeadSource":"String","leadStatus":"String","leadAcquired":"0001-01-01T00:00:00.0000000","tentativeStartDate":"0001-01-01T00:00:00.0000000","tentativeEndDate":"0001-01-01T00:00:00.0000000","assignedAgent":"String","assignedDate":"0001-01-01T00:00:00.0000000","contactMethod":"String","contactAgent":"String","contactDate":"0001-01-01T00:00:00.0000000","lastFollowupMethod":"String","lastFollowupAgent":"String","lastFollowupDate":"0001-01-01T00:00:00.0000000","bookingMethod":"String","bookingAgent":"String","bookingDate":"0001-01-01T00:00:00.0000000","reasonforStay":"String","marketCode":"String","campaignCode":"String","campaignName":"String","priceEstimate":0,"flaggedForAttention":false},"relatedTravelers":[{"cendynPropertyID":"String","propertyName":"String","uniqueIDs":[{"id":"String","type":"String","context":"String"}],"salutation":"String","firstName":"String","familiarName":"String","middleName":"String","lastName":"String","fullName":"String","suffix":"String","relation":"String","isPrimary":false}],"documents":[{"documentID":"String","documentType":"String","documentSource":"String","codeOnDocument":"String","documentNotes":"String","nameOnDocument":"String","nationalityOnDocument":"String","effectiveDate":"0001-01-01T00:00:00.0000000","expirationDate":"0001-01-01T00:00:00.0000000","issuer":"String","issuerCountry":"String","isPrimary":false,"piI_StoredAs":"String","inactiveDate":"0001-01-01T00:00:00.0000000"}],"vouchers":[{"hotelCode":"String","voucherID":"String","voucherID2":"String","appliedToResort":"String","reservationID":"String","profileIDRecipient":"String","subscriberIDRecipient":"String","recipientName":"String","emailaddress":"String","profileIDPurchaser":"String","purchaserName":"String","voucherStatus":"String","voucherType":"String","membershipType":"String","certCode":"String","certNo":"String","shortDescription":"String","giftMessage":"String","comments":"String","voucherAmount":0,"currencyCode":"String","issueType":"String","dateConsumed":"0001-01-01T00:00:00.0000000","expirationDate":"0001-01-01T00:00:00.0000000","awardPoints":0,"ruleType":"String","ruleValue":"String","cancelAllowed":false,"maxExtensions":0,"referenceType":"String","referenceID":"String","promotionCode":"String","reservationConsumed":false,"webConsumed":false,"pmsConsumed":false,"verifyCertNo":false,"generateInLieu":false,"creatorCode":"String","lastUpdaterCode":"String","folioID":"String","inactiveDate":"0001-01-01T00:00:00.0000000"}],"profilePolicies":[{"policyType":"String","attributeName":"String","integerValue":0,"stringValue":"String","effectiveDate":"0001-01-01T00:00:00.0000000","expirationDate":"0001-01-01T00:00:00.0000000","comments":"String","externalID":"String","appliesTo":"String","appliesToDescriptor":"String"}]}]},"subscriptionId":"String","cendynPropertyId":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

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