Inventory
Click here for a complete list of operations.
GetUnitAvailability
This web method checks availability for any 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/GetUnitAvailability"
<?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>
<GetUnitAvailability 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>
</GetUnitAvailability>
</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>
<GetUnitAvailabilityResponse xmlns="http://bxgcorp.com/webservices/InventorySvc">
<GetUnitAvailabilityResult>
<InventoryUnitAvailability>
<Unit>
<Accomodates>int</Accomodates>
<AreaCode>string</AreaCode>
<Resort xsi:nil="true" />
<UnitNumber>string</UnitNumber>
<UnitType xsi:nil="true" />
<ViewCode>string</ViewCode>
</Unit>
</InventoryUnitAvailability>
<InventoryUnitAvailability>
<Unit>
<Accomodates>int</Accomodates>
<AreaCode>string</AreaCode>
<Resort xsi:nil="true" />
<UnitNumber>string</UnitNumber>
<UnitType xsi:nil="true" />
<ViewCode>string</ViewCode>
</Unit>
</InventoryUnitAvailability>
</GetUnitAvailabilityResult>
</GetUnitAvailabilityResponse>
</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>
<GetUnitAvailability 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>
</GetUnitAvailability>
</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>
<GetUnitAvailabilityResponse xmlns="http://bxgcorp.com/webservices/InventorySvc">
<GetUnitAvailabilityResult>
<InventoryUnitAvailability>
<Unit>
<Accomodates>int</Accomodates>
<AreaCode>string</AreaCode>
<Resort xsi:nil="true" />
<UnitNumber>string</UnitNumber>
<UnitType xsi:nil="true" />
<ViewCode>string</ViewCode>
</Unit>
</InventoryUnitAvailability>
<InventoryUnitAvailability>
<Unit>
<Accomodates>int</Accomodates>
<AreaCode>string</AreaCode>
<Resort xsi:nil="true" />
<UnitNumber>string</UnitNumber>
<UnitType xsi:nil="true" />
<ViewCode>string</ViewCode>
</Unit>
</InventoryUnitAvailability>
</GetUnitAvailabilityResult>
</GetUnitAvailabilityResponse>
</soap12:Body>
</soap12:Envelope>