Inventory


Click here for a complete list of operations.

CheckUnitAvailability

This web method checks availability for a specific unit

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 /inventory.asmx HTTP/1.1
Host: externalinventory.bxgcorp.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://bxgcorp.com/webservices/InventorySvc/CheckUnitAvailability"

<?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:Header>
    <AuthorizationHeader xmlns="http://bxgcorp.com/webservices/InventorySvc">
      <Username>string</Username>
      <Password>string</Password>
    </AuthorizationHeader>
  </soap:Header>
  <soap:Body>
    <CheckUnitAvailability xmlns="http://bxgcorp.com/webservices/InventorySvc">
      <availableInfo>
        <AvailabilityEndDate>dateTime</AvailabilityEndDate>
        <AvailabilityStartDate>dateTime</AvailabilityStartDate>
        <AvailableOnly>boolean</AvailableOnly>
        <ExternalHotelCode>string</ExternalHotelCode>
        <ExternalUnitCode>string</ExternalUnitCode>
        <InventorySegments>
          <InventorySegment>
            <Description>string</Description>
            <SegmentCode>string</SegmentCode>
          </InventorySegment>
          <InventorySegment>
            <Description>string</Description>
            <SegmentCode>string</SegmentCode>
          </InventorySegment>
        </InventorySegments>
        <NumberOfNights>int</NumberOfNights>
        <Resort>
          <Description>string</Description>
          <ResortCode>int</ResortCode>
        </Resort>
        <UnitTypes>
          <InventoryUnitType>
            <Description>string</Description>
            <UnitType>string</UnitType>
          </InventoryUnitType>
          <InventoryUnitType>
            <Description>string</Description>
            <UnitType>string</UnitType>
          </InventoryUnitType>
        </UnitTypes>
      </availableInfo>
      <unit>
        <Accomodates>int</Accomodates>
        <AreaCode>string</AreaCode>
        <Resort>
          <Description>string</Description>
          <ResortCode>int</ResortCode>
        </Resort>
        <UnitNumber>string</UnitNumber>
        <UnitType>
          <Description>string</Description>
          <UnitType>string</UnitType>
        </UnitType>
        <ViewCode>string</ViewCode>
      </unit>
    </CheckUnitAvailability>
  </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>
    <CheckUnitAvailabilityResponse xmlns="http://bxgcorp.com/webservices/InventorySvc">
      <CheckUnitAvailabilityResult>boolean</CheckUnitAvailabilityResult>
    </CheckUnitAvailabilityResponse>
  </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 /inventory.asmx HTTP/1.1
Host: externalinventory.bxgcorp.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:Header>
    <AuthorizationHeader xmlns="http://bxgcorp.com/webservices/InventorySvc">
      <Username>string</Username>
      <Password>string</Password>
    </AuthorizationHeader>
  </soap12:Header>
  <soap12:Body>
    <CheckUnitAvailability xmlns="http://bxgcorp.com/webservices/InventorySvc">
      <availableInfo>
        <AvailabilityEndDate>dateTime</AvailabilityEndDate>
        <AvailabilityStartDate>dateTime</AvailabilityStartDate>
        <AvailableOnly>boolean</AvailableOnly>
        <ExternalHotelCode>string</ExternalHotelCode>
        <ExternalUnitCode>string</ExternalUnitCode>
        <InventorySegments>
          <InventorySegment>
            <Description>string</Description>
            <SegmentCode>string</SegmentCode>
          </InventorySegment>
          <InventorySegment>
            <Description>string</Description>
            <SegmentCode>string</SegmentCode>
          </InventorySegment>
        </InventorySegments>
        <NumberOfNights>int</NumberOfNights>
        <Resort>
          <Description>string</Description>
          <ResortCode>int</ResortCode>
        </Resort>
        <UnitTypes>
          <InventoryUnitType>
            <Description>string</Description>
            <UnitType>string</UnitType>
          </InventoryUnitType>
          <InventoryUnitType>
            <Description>string</Description>
            <UnitType>string</UnitType>
          </InventoryUnitType>
        </UnitTypes>
      </availableInfo>
      <unit>
        <Accomodates>int</Accomodates>
        <AreaCode>string</AreaCode>
        <Resort>
          <Description>string</Description>
          <ResortCode>int</ResortCode>
        </Resort>
        <UnitNumber>string</UnitNumber>
        <UnitType>
          <Description>string</Description>
          <UnitType>string</UnitType>
        </UnitType>
        <ViewCode>string</ViewCode>
      </unit>
    </CheckUnitAvailability>
  </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>
    <CheckUnitAvailabilityResponse xmlns="http://bxgcorp.com/webservices/InventorySvc">
      <CheckUnitAvailabilityResult>boolean</CheckUnitAvailabilityResult>
    </CheckUnitAvailabilityResponse>
  </soap12:Body>
</soap12:Envelope>