Response

Checking availability response

The AvailabilityResponse will indicate if there is sufficient space for the requested passenger mix as well as the total cost if the traveler proceeds to the checkout.

<?xml version="1.0" encoding="UTF-8"?>
<CheckAvailabilityResponse xmlns="https://api.zaui.io/api/01">
	<ApiKey>xxxxxxxxxxxxxxxxxxxxxxx</ApiKey>     
	<ResellerId>2005</ResellerId>    
	<SupplierId>200</SupplierId>       
	<Timestamp>1577121674745</Timestamp>
	<RequestStatus>
		<Status>SUCCESS</Status>
	</RequestStatus>
	<SupplierProductCode>ACT_1765</SupplierProductCode>
	<TourAvailability>
		<Date>2020-10-31</Date>
		<TourOptions>
			<SupplierOptionCode>09:00:00</SupplierOptionCode>
			<SupplierOptionName>Zipline Tour</SupplierOptionName>
			<TourDepartureTime>09:00:00</TourDepartureTime>
		</TourOptions>
		<AvailabilityStatus>
			<Status>AVAILABLE</Status>
			<RemainingInventory>100</RemainingInventory>
		</AvailabilityStatus>
		<TourPricing>
    	<SubTotal>$481,00</SubTotal>
			<Fees>$3.00</Fees>
			<Tax>$24.20></Tax>
			<Currency>USD</Currency>
			<TaxDetails>
				<TaxDetail>
					<TaxName><![CDATA[GST]]></TaxName>
					<TaxAmount>$24.20</TaxAmount>
				</TaxDetail>
			</TaxDetails>
			<Total>$508.20</Total>
		</TourPricing>
	</TourAvailability>
</CheckAvailabilityResponse>

You must store in your database SupplierProductCode and at least 1 TourOptions value for inventory lookup.

You will also want to cache locally the returned inventory. Relying solely on our API, with throttle rate limits, you may see error coddes 503 returned from our system. If you do, you have exceed the allowed API calls. Please refer to the "Getting Started - API Throttle" section on how to gracefully handle 503 errors.

Handling 503 errors and working with a API throttle

Response Fields:

Last updated