Zaui I/O
Search…
Response
Batch availability response
The below sample is the response provided by the supplier system for a batch availability request where the tour has multiple departure times. In this response, the product is sold out at certain times, therefore not available.
Example - Single Date Response
Example - Multi-day Response
1
<?xml version="1.0" encoding="UTF-8"?>
2
<BatchCheckAvailabilityResponse xmlns="https://api.zaui.io/api/01">
3
<ApiKey>xxxxxxxxxxxxxxxxxxxxxxx</ApiKey>
4
<ResellerId>2005</ResellerId>
5
<SupplierId>200</SupplierId>
6
<ExternalReference>10051374722992616</ExternalReference>
7
<Timestamp>1577121674745</Timestamp>
8
<RequestStatus>
9
<Status>SUCCESS</Status>
10
</RequestStatus>
11
<BatchTourAvailability>
12
<Date>2020-10-01</Date>
13
<AvailabilityStatus>
14
<Status>UNAVAILABLE</Status>
15
<UnavailabilityReason>SOLD_OUT</UnavailabilityReason>
16
</AvailabilityStatus>
17
<SupplierProductCode>ACT_1765</SupplierProductCode>
18
<TourOptions>
19
<TourDepartureTime>09:00:00</TourDepartureTime>
20
</TourOptions>
21
</BatchTourAvailability>
22
<BatchTourAvailability>
23
<Date>2020-10-01</Date>
24
<AvailabilityStatus>
25
<Status>AVAILABLE</Status>
26
</AvailabilityStatus>
27
<SupplierProductCode>ACT_1765</SupplierProductCode>
28
<TourOptions>
29
<TourDepartureTime>10:00:00</TourDepartureTime>
30
</TourOptions>
31
</BatchTourAvailability>
32
</BatchCheckAvailabilityResponse>
Copied!
1
<?xml version="1.0" encoding="UTF-8"?>
2
<BatchCheckAvailabilityResponse xmlns="https://api.zaui.io/api/01">
3
<ApiKey>xxxxxxxxxxxxxxxxxxxxxxx</ApiKey>
4
<ResellerId>2005</ResellerId>
5
<SupplierId>200</SupplierId>
6
<ExternalReference>10051374722992616</ExternalReference>
7
<Timestamp>1577121674745</Timestamp>
8
<RequestStatus>
9
<Status>SUCCESS</Status>
10
</RequestStatus>
11
<BatchTourAvailability>
12
<Date>2020-10-30</Date>
13
<AvailabilityStatus>
14
<Status>AVAILABLE</Status>
15
</AvailabilityStatus>
16
<SupplierProductCode>ACT_1765</SupplierProductCode>
17
<TourOptions>
18
<TourDepartureTime>09:00:00</TourDepartureTime>
19
</TourOptions>
20
</BatchTourAvailability>
21
<BatchTourAvailability>
22
<Date>2020-10-30</Date>
23
<AvailabilityStatus>
24
<Status>AVAILABLE</Status>
25
</AvailabilityStatus>
26
<SupplierProductCode>ACT_1765</SupplierProductCode>
27
<TourOptions>
28
<TourDepartureTime>10:00:00</TourDepartureTime>
29
</TourOptions>
30
</BatchTourAvailability>
31
<BatchTourAvailability>
32
<Date>2020-10-31</Date>
33
<AvailabilityStatus>
34
<Status>UNAVAILABLE</Status>
35
<UnavailabilityReason>SOLD_OUT</UnavailabilityReason>
36
</AvailabilityStatus>
37
<SupplierProductCode>ACT_1765</SupplierProductCode>
38
<TourOptions>
39
<TourDepartureTime>09:00:00</TourDepartureTime>
40
</TourOptions>
41
</BatchTourAvailability>
42
<BatchTourAvailability>
43
<Date>2020-10-31</Date>
44
<AvailabilityStatus>
45
<Status>AVAILABLE</Status>
46
</AvailabilityStatus>
47
<SupplierProductCode>ACT_1765</SupplierProductCode>
48
<TourOptions>
49
<TourDepartureTime>10:00:00</TourDepartureTime>
50
</TourOptions>
51
</BatchTourAvailability>
52
</BatchCheckAvailabilityResponse>
Copied!
XML Node
Parent Node
Description
BatchCheckAvailabilityResponse
N/A
Root XML node
ApiKey
BatchCheckAvailabilityResponse
Your unique API key
ResellerId
BatchCheckAvailabilityResponse
Your unique reseller Id
SupplierId
BatchCheckAvailabilityResponse
String representing the unique supplier ID within the Zaui Marketplace
ExternalReference
BatchCheckAvailabilityResponse
String representing a unique transaction ID. Used to identify your original request
TimeStamp
BatchCheckAvailabilityResponse
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
BatchCheckAvailabilityResponse
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
BatchTourAvailability
BatchCheckAvailabilityResponse
Root node with the tour availability
Date
TourAvailability
Date the tour is available on, in the format YYYY-MM-DD
SupplierProductCode
BatchCheckAvailabilityResponse
Unique supplier product code
TourOptions
TourAvailability
Tour options root node
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
Copy link