O
O
OCTo
Search…
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.
    Booking
      1.
      Reserve - stage 1 reserves the availability by providing the availabilityId. The Availability ID comes from checking inventory.
      2.
      Confirm - stage 2 finalizes the booking. You will store the supplierReferenceNumber.
      3.
      Update (optional) - allows updating a confirmed booking.
      4.
      Cancel (optional) - allows cancelling a confirmed booking.
post
https://api.zaui.io/octo
/suppliers/:id/bookings
Bookings - Reserve

Example Request:

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

Example Request:

1
{
2
"resellerReference": "VOUCHER-0123",
3
"contact": {
4
"fullName": "Muddy Waters",
5
"emailAddress": "[email protected]",
6
"phoneNumber": "+1604-566-9284",
7
"locales": ["en-GB", "en-US", "en"],
8
"country": "CA"
9
}
10
}
Copied!
post
https://api.zaui.io/octo
/suppliers/:sid/bookings/:id/cancel
Bookings - Cancel

Example Request:

1
{
2
"reason": "CUSTOMER_REQUESTED",
3
"reasonDetails": "Child came down with the flu the day before the activity."
4
}
Copied!
Last modified 1mo ago