Bookings
Last updated
Was this helpful?
Last updated
Was this helpful?
A reseller has to perform Availability Check to retrieve an availabilityId
in order to make a Booking Reservation.
Reserving availability when making a booking. The steps to make a reservation are:
availabilityId
ON_HOLD
until the booking is confirmed or the reservation hold expires.The availability for the booking is held for the amount of time equal to theexpirationMinutes
parameter (if provided), up to an internal limit set by either the supplier or the OCTo provider. The utc_expires_at
parameter in the response object will indicate when a reservtion will expire. A reservation can be extended by calling the /bookings/{uuid}/extend endpoint.
A reserved booking can be confirmed after the customer finalizes their choice on the /bookings/{uuid}/confirm endpoint provided the reservation had not expired.
/bookings
Required field on all POST requests
application/json
A unique UUID to identify the booking. Setting this value acts like an idempotency key preventing you from double booking.
559aed3d-6d5b-4fe0-bfca-99f5e7218a56
The product ID for this booking.
6b903d44-dc24-4ca4-ae71-6bde6c4f4854
The option ID for this booking.
DEFAULT
The availability ID for the selected timeslot.
2021-10-27T00:00:00-04:00
How many minutes to reserve the availability, otherwise defaults to the supplier default amount.
30
Optional notes for the booking.
Optional notes
An list of unit items that will be included in the booking.
This endpoint confirms the booking so it's ready to be used.
/bookings/{uuid}/confirm
The UUID of the booking
Required field on all POST requests
application/json
Whether you want OCTO Cloud to email the guest a copy of their receipt and tickets. (defaults to false)
Your reference for this booking. Also known as a Voucher Number.
4ec08a62-892c-48c1-a608-dc946531a33b
Contact details for the main guest who will attend the tour/attraction. Contact schema can be applied to both the booking object (the main reservation) or the unit object (individual ticket holders - if the supplier requires this information).
An array of unit items that will be included in the booking. This allows you to provide contact details or a reseller reference for each unit item. Be careful to make sure you include ALL unit items that you also had in the original booking reservation request, if you provide more or less than in the booking reservation call this will change the number of unit items being purchased also.
For cancelling bookings. You can only cancel a booking if booking.cancellable
is TRUE
, and is within the booking cancellation cut-off window.
/bookings/{uuid}/cancel
Required field on all DELETE requests
application/json
A text value describing why the cancellation happened.
Customer Requested
This endpoint will fetch the bookings you have made for the given filters.
When using this endpoint you must include one of the following query parameters:
resellerReference
supplierReference
localDate
localDateStart
and localDateEnd
/bookings
The reseller reference on the booking
The reference provided by the supplier
All bookings made for a specific date
First date of a date range search
Last date of a date range search
The product id to filter by
The option id to filter by
Updates a booking before and after it has been confirmed as long as it hasn''t been redeemed or within the cancellation cutoff window. To know if the booking can be updated check the booking''s cancellable
field. If the booking can be cancelled, it can also be updated. It''s generally preferred to update a booking rather than cancelling it and rebooking.
/bookings/{uuid}
The UUID of the booking
Required field on all PATCH requests
application/json
Your reference for this booking. Also known as a Voucher Number.
ec08a62-892c-48c1-a608-dc946531a33b
The product ID.
6b903d44-dc24-4ca4-ae71-6bde6c4f4854
The option id.
DEFAULT
The availability ID for the selected timeslot.
How many minutes to reserve the availability, otherwise defaults to the supplier default amount.
Optional notes for the booking.
Whether you want OCTO Cloud to email the guest a copy of their receipt and tickets. (defaults to false).
An array of unit items in the booking. To retain or modify existing unit items, you must include the unit item with the associated uuid, otherwise that unit item will be removed.
Use this endpoint to hold the availability for a booking longer if the status is ON_HOLD
.
/bookings/{uuid}/extend
The UUID of the booking
Required field on all POST requests
application/json
15