Inventory
Click here for a complete list of operations.
GetUnitTypeAvailability
This web method checks availability for any unit type
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/GetUnitTypeAvailability"
<?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>
<GetUnitTypeAvailability 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>
</GetUnitTypeAvailability>
</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>
<GetUnitTypeAvailabilityResponse xmlns="http://bxgcorp.com/webservices/InventorySvc">
<GetUnitTypeAvailabilityResult>
<InventoryTypeAvailability>
<NumberOfUnits>int</NumberOfUnits>
<UnitType>
<Description>string</Description>
<UnitType>string</UnitType>
</UnitType>
</InventoryTypeAvailability>
<InventoryTypeAvailability>
<NumberOfUnits>int</NumberOfUnits>
<UnitType>
<Description>string</Description>
<UnitType>string</UnitType>
</UnitType>
</InventoryTypeAvailability>
</GetUnitTypeAvailabilityResult>
</GetUnitTypeAvailabilityResponse>
</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>
<GetUnitTypeAvailability 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>
</GetUnitTypeAvailability>
</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>
<GetUnitTypeAvailabilityResponse xmlns="http://bxgcorp.com/webservices/InventorySvc">
<GetUnitTypeAvailabilityResult>
<InventoryTypeAvailability>
<NumberOfUnits>int</NumberOfUnits>
<UnitType>
<Description>string</Description>
<UnitType>string</UnitType>
</UnitType>
</InventoryTypeAvailability>
<InventoryTypeAvailability>
<NumberOfUnits>int</NumberOfUnits>
<UnitType>
<Description>string</Description>
<UnitType>string</UnitType>
</UnitType>
</InventoryTypeAvailability>
</GetUnitTypeAvailabilityResult>
</GetUnitTypeAvailabilityResponse>
</soap12:Body>
</soap12:Envelope>