Zaui I/O
Search…
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.
Example - Single Date Response
Example - Date Range Response
1
<?xml version="1.0" encoding="UTF-8"?>
2
<CheckAvailabilityResponse xmlns="https://api.zaui.io/api/01">
3
<ApiKey>xxxxxxxxxxxxxxxxxxxxxxx</ApiKey>
4
<ResellerId>2005</ResellerId>
5
<SupplierId>200</SupplierId>
6
<Timestamp>1577121674745</Timestamp>
7
<RequestStatus>
8
<Status>SUCCESS</Status>
9
</RequestStatus>
10
<SupplierProductCode>ACT_1765</SupplierProductCode>
11
<TourAvailability>
12
<Date>2020-10-31</Date>
13
<TourOptions>
14
<SupplierOptionCode>09:00:00</SupplierOptionCode>
15
<SupplierOptionName>Zipline Tour</SupplierOptionName>
16
<TourDepartureTime>09:00:00</TourDepartureTime>
17
</TourOptions>
18
<AvailabilityStatus>
19
<Status>AVAILABLE</Status>
20
<RemainingInventory>100</RemainingInventory>
21
</AvailabilityStatus>
22
<TourPricing>
23
<SubTotal>$481,00</SubTotal>
24
<Fees>$3.00</Fees>
25
<Tax>$24.20></Tax>
26
<Currency>USD</Currency>
27
<TaxDetails>
28
<TaxDetail>
29
<TaxName><![CDATA[GST]]></TaxName>
30
<TaxAmount>$24.20</TaxAmount>
31
</TaxDetail>
32
</TaxDetails>
33
<Total>$508.20</Total>
34
</TourPricing>
35
</TourAvailability>
36
</CheckAvailabilityResponse>
Copied!
1
<?xml version="1.0" encoding="UTF-8"?>
2
<CheckAvailabilityResponse xmlns="https://api.zaui.io/api/01">
3
<ApiKey>xxxxxxxxxxxxxxxxxxxxxxx</ApiKey>
4
<ResellerId>2005</ResellerId>
5
<SupplierId>200</SupplierId>
6
<Timestamp>1577121674745</Timestamp> <RequestStatus>
7
<Status>SUCCESS</Status>
8
</RequestStatus>
9
<SupplierProductCode>ACT_1765</SupplierProductCode>
10
<TourAvailability>
11
<Date>2020-10-30</Date>
12
<TourOptions>
13
<SupplierOptionCode>09:00:00</SupplierOptionCode>
14
<SupplierOptionName>Zipline Tour</SupplierOptionName>
15
<TourDepartureTime>09:00:00</TourDepartureTime>
16
</TourOptions>
17
<AvailabilityStatus>
18
<Status>AVAILABLE</Status>
19
<RemainingInventory>100</RemainingInventory>
20
</AvailabilityStatus>
21
<TourPricing>
22
<SubTotal>$481.00</SubTotal>
23
<Fees>$3.00</Fees>
24
<Tax>$24.20></Tax>
25
<Currency>USD</Currency>
26
<TaxDetails>
27
<TaxDetail>
28
<TaxName><![CDATA[GST]]></TaxName>
29
<TaxAmount>$24.20</TaxAmount>
30
</TaxDetail>
31
</TaxDetails>
32
<Total>$508.20</Total>
33
</TourPricing>
34
</TourAvailability>
35
<TourAvailability>
36
<Date>2020-10-31</Date>
37
<TourOptions>
38
<SupplierOptionCode>09:00:00</SupplierOptionCode>
39
<SupplierOptionName>Zipline Tour</SupplierOptionName>
40
<TourDepartureTime>09:00:00</TourDepartureTime>
41
</TourOptions>
42
<AvailabilityStatus>
43
<Status>UNAVAILABLE</Status>
44
<UnavailabilityReason>SOLD_OUT</UnavailabilityReason>
45
<RemainingInventory>0</RemainingInventory>
46
</AvailabilityStatus>
47
<TourPricing>
48
<SubTotal>$481.00</SubTotal>
49
<Fees>$3.00</Fees>
50
<Tax>$24.20></Tax>
51
<Currency>USD</Currency>
52
<TaxDetails>
53
<TaxDetail>
54
<TaxName><![CDATA[GST]]></TaxName>
55
<TaxAmount>$24.20</TaxAmount>
56
</TaxDetail>
57
</TaxDetails>
58
<Total>$508.20</Total>
59
</TourPricing>
60
</TourAvailability>
61
</CheckAvailabilityResponse>
Copied!
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.

Response Fields:

XML Node
Parent Node
Description
CheckAvailabilityResponse
N/A
Root XML node
ApiKey
CheckAvailabilityResponse
Your unique API key
ResellerId
CheckAvailabilityResponse
Your unique reseller Id
SupplierId
CheckAvailabilityResponse
String representing the unique supplier ID within the Zaui Marketplace
ExternalReference
CheckAvailabilityResponse
String representing a unique transaction ID. Used to identify your original request
TimeStamp
CheckAvailabilityResponse
Time of creation of request
• yyyy-MMddTHH:mm:ss.SSSZ(in UTC time)
or
• yyyy-MMddTHH:mm:ss.SSS[+/- ]hh:mm
Example:
2020-04- 28T13:10:12.123Z (UTC time)
2020-04- 28T13:10:12.123+10:00
RequestStatus
CheckAvailabilityResponse
Request status root XML element
Status
RequestStatus
Status value for the request. Values are:
SUCCESS
ERROR
Error
RequestStatus
Root node for the error details on a non- successful request
ErrorCode
Error
String with the error code
ErrorMessage
Error
String with the error message
ErrorDetails
Error
String with additional details, and recommendation on the error
SupplierProductCode
CheckAvailabilityResponse
Unique supplier product code
TourAvailability
CheckAvailabilityResponse
Root node with the tour availability
Date
TourAvailability
Date the tour is available on, in the format YYYY-MM-DD
TourOptions
TourAvailability
Tour options root node
SupplierOptionCode
TourOptions
String containing the unique supplier option code
SupplierOptionName
TourOptions
String containing the supplier option name
TourDepartureTime
TourOptions
Time of the tour departure, in the format HH:MM:SS
AvailbilityStatus
CheckAvailabilityResponse
Root element for the availability status
Status
AvailabilityStatus
Status of the availability request. Values can be:
Available - when available for the given date and traveller mix
Unavailable - when not available for the given date and traveller mix
UnavailabilityReason
AvailabilityStatus
Reason why the requested activity is NOT available. Valid values:
SOLD_OUT
BLOCKED_OUT - when the product (tour)/product option (tour option) has been blocked out (not taking place on this date)
INACTIVE - when the product (tour)/product option (tour option) is no longer active. Recommend to run an ActivityListRequest to refresh the supplier product codes to obtain the latest product (tour)/ product option (tour option) that is shared
PAST_CUTOFF_DATE - when the booking cut-off date has been reached for this product (tour)/product option (tour option)
TRAVELLER_MISMATCH - when the required combination of travelers for this product (tour)/product option (tour option) is not met OR when the number of requested passengers cannot be fulfilled, but a lower number can. For example, Status.AvailabilityStatus for 3 people is Unavailable but Status.AvailabilityStatus for 2 is Available.
RemainingInventory
AvailabilityStatus
Number of spots remaining for the product
TourPricing
CheckAvailabilityResponse
Root element for pricing data
Subtotal
TourPricing
Formatted string with currency for sub-total based on the request
Fees
TourPricing
Formatted string with currency for all fees
Tax
TourPricing
Formatted string with currency for all taxes
Total
TourPricing
Formatted string with currency for total cost if the booking was to be created
Currency
TourPricing
The ISO currency code
TaxDetails
TourPricing
Root Node
TaxDetail
TaxDetails
Single Tax node
TaxName
TaxDetail
The name of the tax applied
TaxAmount
TaxDetail
The amount of the tax formatted
Last modified 5mo ago
Copy link