Search…
⌃K

Booking

2-stepbooking process through: reserving availability and making the booking.
​The process of making a booking through the API requires Reserve and Confirm. Update and Cancel are optional. We have described the possible Booking calls here:
  1. 1.
    Booking
    1. 1.
      Reserve - stage 1 reserves the availability by providing the availabilityId. The Availability ID comes from checking inventory.
    2. 2.
      Confirm - stage 2 finalizes the booking. You will store the supplierReferenceNumber.
    3. 3.
      Cancel (optional) - allows cancelling a confirmed booking.
post
https://api.zaui.io/octo
/suppliers/:id/bookings
Bookings - Reserve

Example Request:

{
"productId": 121,
"optionId": "328d132f3cf710bbe34cd48be09e439b2948f43d",
"availabilityId": "2021-07-05T10:00:00-07:00",
"notes": "Optional notes that can be passed to the supplier system",
"unitItems": [
{ "unitId": "adults" },
{ "unitId": "children" }
]
}
post
https://api.zaui.io/octo
/suppliers/:sid/bookings/:id/confirm
Bookings - Confirm

Example Request:

{
"resellerReference": "VOUCHER-0123",
"contact": {
"fullName": "Muddy Waters",
"emailAddress": "[email protected]",
"phoneNumber": "+1604-566-9284",
"locales": ["en-GB", "en-US", "en"],
"country": "CA"
}
}
delete
https://api.zaui.io/octo
/suppliers/:sid/bookings/:id/cancel
Bookings - Cancel

Example Request:

{
"reason": "CUSTOMER_REQUESTED",
"reasonDetails": "Child came down with the flu the day before the activity."
}