ChannelManager


Click here for a complete list of operations.

CheckAvailability

Returns availability for the specified hotel and specified period.

Test

The test form is only available for requests from the local machine.

SOAP 1.1

The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.

POST /XmlServices/ChannelManager/v3.6.asmx HTTP/1.1
Host: secure.yieldplanet.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "XmlServices/CheckAvailability"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <CheckAvailability xmlns="XmlServices">
      <request>
        <Credentials>
          <HotelId>int</HotelId>
        </Credentials>
        <PartnerId>int</PartnerId>
        <ArrivalDate>dateTime</ArrivalDate>
        <DepartureDate>dateTime</DepartureDate>
        <Language>string</Language>
        <OutputCurrency>string</OutputCurrency>
      </request>
    </CheckAvailability>
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <CheckAvailabilityResponse xmlns="XmlServices">
      <CheckAvailabilityResult>
        <Status>
          <Success>boolean</Success>
          <WarningMsg>string</WarningMsg>
          <ErrorMsg>string</ErrorMsg>
          <ErrorId>int</ErrorId>
          <TimeStamp>dateTime</TimeStamp>
        </Status>
        <Availability>
          <AvailableRoom>
            <PartnerId>int</PartnerId>
            <RoomId>int</RoomId>
            <RatePlanId>int</RatePlanId>
            <RoomName>string</RoomName>
            <RatePlanName>string</RatePlanName>
            <RoomDescription>string</RoomDescription>
            <RatePlanDescription>string</RatePlanDescription>
            <RatePlanOccupancySearchCriteria xsi:nil="true" />
            <Supplement>boolean</Supplement>
            <NumAdults>unsignedByte</NumAdults>
            <NumChildren>unsignedByte</NumChildren>
            <RoomPrice>decimal</RoomPrice>
            <OccupancyRoomPrice xsi:nil="true" />
            <Currency>string</Currency>
            <RoomPriceOutputCurrency>decimal</RoomPriceOutputCurrency>
            <OccupancyRoomPriceOutputCurrency xsi:nil="true" />
            <OutputCurrency>string</OutputCurrency>
            <DailyPrices xsi:nil="true" />
            <ExtraChildPrices xsi:nil="true" />
            <Allotment>int</Allotment>
            <Available>boolean</Available>
            <UnavailableReason>string</UnavailableReason>
            <CancellationAllowed>boolean</CancellationAllowed>
            <MealPlan>None or Breakfast or HalfBoard or FullBoard or AllInclusive or Unspecified</MealPlan>
          </AvailableRoom>
          <AvailableRoom>
            <PartnerId>int</PartnerId>
            <RoomId>int</RoomId>
            <RatePlanId>int</RatePlanId>
            <RoomName>string</RoomName>
            <RatePlanName>string</RatePlanName>
            <RoomDescription>string</RoomDescription>
            <RatePlanDescription>string</RatePlanDescription>
            <RatePlanOccupancySearchCriteria xsi:nil="true" />
            <Supplement>boolean</Supplement>
            <NumAdults>unsignedByte</NumAdults>
            <NumChildren>unsignedByte</NumChildren>
            <RoomPrice>decimal</RoomPrice>
            <OccupancyRoomPrice xsi:nil="true" />
            <Currency>string</Currency>
            <RoomPriceOutputCurrency>decimal</RoomPriceOutputCurrency>
            <OccupancyRoomPriceOutputCurrency xsi:nil="true" />
            <OutputCurrency>string</OutputCurrency>
            <DailyPrices xsi:nil="true" />
            <ExtraChildPrices xsi:nil="true" />
            <Allotment>int</Allotment>
            <Available>boolean</Available>
            <UnavailableReason>string</UnavailableReason>
            <CancellationAllowed>boolean</CancellationAllowed>
            <MealPlan>None or Breakfast or HalfBoard or FullBoard or AllInclusive or Unspecified</MealPlan>
          </AvailableRoom>
        </Availability>
      </CheckAvailabilityResult>
    </CheckAvailabilityResponse>
  </soap:Body>
</soap:Envelope>

SOAP 1.2

The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.

POST /XmlServices/ChannelManager/v3.6.asmx HTTP/1.1
Host: secure.yieldplanet.com
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <CheckAvailability xmlns="XmlServices">
      <request>
        <Credentials>
          <HotelId>int</HotelId>
        </Credentials>
        <PartnerId>int</PartnerId>
        <ArrivalDate>dateTime</ArrivalDate>
        <DepartureDate>dateTime</DepartureDate>
        <Language>string</Language>
        <OutputCurrency>string</OutputCurrency>
      </request>
    </CheckAvailability>
  </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <CheckAvailabilityResponse xmlns="XmlServices">
      <CheckAvailabilityResult>
        <Status>
          <Success>boolean</Success>
          <WarningMsg>string</WarningMsg>
          <ErrorMsg>string</ErrorMsg>
          <ErrorId>int</ErrorId>
          <TimeStamp>dateTime</TimeStamp>
        </Status>
        <Availability>
          <AvailableRoom>
            <PartnerId>int</PartnerId>
            <RoomId>int</RoomId>
            <RatePlanId>int</RatePlanId>
            <RoomName>string</RoomName>
            <RatePlanName>string</RatePlanName>
            <RoomDescription>string</RoomDescription>
            <RatePlanDescription>string</RatePlanDescription>
            <RatePlanOccupancySearchCriteria xsi:nil="true" />
            <Supplement>boolean</Supplement>
            <NumAdults>unsignedByte</NumAdults>
            <NumChildren>unsignedByte</NumChildren>
            <RoomPrice>decimal</RoomPrice>
            <OccupancyRoomPrice xsi:nil="true" />
            <Currency>string</Currency>
            <RoomPriceOutputCurrency>decimal</RoomPriceOutputCurrency>
            <OccupancyRoomPriceOutputCurrency xsi:nil="true" />
            <OutputCurrency>string</OutputCurrency>
            <DailyPrices xsi:nil="true" />
            <ExtraChildPrices xsi:nil="true" />
            <Allotment>int</Allotment>
            <Available>boolean</Available>
            <UnavailableReason>string</UnavailableReason>
            <CancellationAllowed>boolean</CancellationAllowed>
            <MealPlan>None or Breakfast or HalfBoard or FullBoard or AllInclusive or Unspecified</MealPlan>
          </AvailableRoom>
          <AvailableRoom>
            <PartnerId>int</PartnerId>
            <RoomId>int</RoomId>
            <RatePlanId>int</RatePlanId>
            <RoomName>string</RoomName>
            <RatePlanName>string</RatePlanName>
            <RoomDescription>string</RoomDescription>
            <RatePlanDescription>string</RatePlanDescription>
            <RatePlanOccupancySearchCriteria xsi:nil="true" />
            <Supplement>boolean</Supplement>
            <NumAdults>unsignedByte</NumAdults>
            <NumChildren>unsignedByte</NumChildren>
            <RoomPrice>decimal</RoomPrice>
            <OccupancyRoomPrice xsi:nil="true" />
            <Currency>string</Currency>
            <RoomPriceOutputCurrency>decimal</RoomPriceOutputCurrency>
            <OccupancyRoomPriceOutputCurrency xsi:nil="true" />
            <OutputCurrency>string</OutputCurrency>
            <DailyPrices xsi:nil="true" />
            <ExtraChildPrices xsi:nil="true" />
            <Allotment>int</Allotment>
            <Available>boolean</Available>
            <UnavailableReason>string</UnavailableReason>
            <CancellationAllowed>boolean</CancellationAllowed>
            <MealPlan>None or Breakfast or HalfBoard or FullBoard or AllInclusive or Unspecified</MealPlan>
          </AvailableRoom>
        </Availability>
      </CheckAvailabilityResult>
    </CheckAvailabilityResponse>
  </soap12:Body>
</soap12:Envelope>