To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
HTTP + XML
The following are sample HTTP requests and responses.
The placeholders shown need to be replaced with actual values.
POST /stayhistory/{SubscriptionId}/{CendynPropertyId} HTTP/1.1
Host: cert.cendyn.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<StayHistoryPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CenResSS.ServiceModel">
<CendynPropertyId>String</CendynPropertyId>
<StayHistoryContainer>
<EchoToken>String</EchoToken>
<StayHistoryList>
<StayHistory>
<ActualArrivalDate>0001-01-01T00:00:00</ActualArrivalDate>
<ActualDepartureDate>0001-01-01T00:00:00</ActualDepartureDate>
<Adults>0</Adults>
<BookDate>0001-01-01T00:00:00</BookDate>
<BookedArrivalDate>0001-01-01T00:00:00</BookedArrivalDate>
<BookedDepartureDate>0001-01-01T00:00:00</BookedDepartureDate>
<CRSBookNo>String</CRSBookNo>
<CendynPropertyID>String</CendynPropertyID>
<Channel>String</Channel>
<Children>0</Children>
<CompYN>String</CompYN>
<CompanyID>String</CompanyID>
<ConfirmationID>String</ConfirmationID>
<CurrencyCode>String</CurrencyCode>
<ExternalProfileID1>String</ExternalProfileID1>
<ExternalResId1>String</ExternalResId1>
<FbRevenue>0</FbRevenue>
<HasDailyRooms>false</HasDailyRooms>
<MarketCode>String</MarketCode>
<MembershipID>String</MembershipID>
<MembershipType>String</MembershipType>
<PaymentMethod>String</PaymentMethod>
<RateAmount>0</RateAmount>
<RateAmountCurrencyCode>String</RateAmountCurrencyCode>
<RateCode>String</RateCode>
<RateCurrencyCode>String</RateCurrencyCode>
<RateRoomType>String</RateRoomType>
<ReservationStatus>String</ReservationStatus>
<ResortBookNo>String</ResortBookNo>
<ResortID>String</ResortID>
<ResortLegNo>0</ResortLegNo>
<RoomCategory>String</RoomCategory>
<RoomNumber>String</RoomNumber>
<RoomRevenue>0</RoomRevenue>
<SourceCode>String</SourceCode>
<StayHistoryDailyRateCollection>
<StayHistoryDailyRate>
<Amount>0</Amount>
<CurrencyCode>String</CurrencyCode>
<InactiveDate>0001-01-01T00:00:00</InactiveDate>
<MarketCode>String</MarketCode>
<PseudoRoom>String</PseudoRoom>
<RateCode>String</RateCode>
<RateRoomType>String</RateRoomType>
<RecordStatus>String</RecordStatus>
<ResourceID>String</ResourceID>
<RoomCategory>String</RoomCategory>
<RoomNumber>String</RoomNumber>
<TransactionDate>0001-01-01T00:00:00</TransactionDate>
</StayHistoryDailyRate>
</StayHistoryDailyRateCollection>
<StayHistoryRevenueCollection>
<StayHistoryRevenue>
<Amount>0</Amount>
<CurrencyCode>String</CurrencyCode>
<FolioWindow>String</FolioWindow>
<InactiveDate>0001-01-01T00:00:00</InactiveDate>
<RecordStatus>String</RecordStatus>
<RevenueGroup>String</RevenueGroup>
<RevenueType>String</RevenueType>
<TransactionDate>0001-01-01T00:00:00</TransactionDate>
</StayHistoryRevenue>
</StayHistoryRevenueCollection>
<TotalRevenue>0</TotalRevenue>
<TransactionID>String</TransactionID>
<TransactionStatus>String</TransactionStatus>
<TravelAgentID>String</TravelAgentID>
<UniqueIDs>
<UniqueIDType>
<Context>String</Context>
<ID>String</ID>
<Type>String</Type>
</UniqueIDType>
</UniqueIDs>
</StayHistory>
</StayHistoryList>
</StayHistoryContainer>
<SubscriptionId>String</SubscriptionId>
</StayHistoryPost>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CenResSS.ServiceModel">
<ErrorCount>0</ErrorCount>
<RecordCount>0</RecordCount>
<StatusCode>String</StatusCode>
</Response>