Bookings
Booking Reservation
Reserving availability when making a booking. The steps to make a reservation are:
- Check Availability: Check the availability on the /availability endpoint to retrieve an
availabilityId - Booking Reservation (this step): Create a booking that reserves the availability while you collect payment and contact information from the customer. The booking will remain with status
ON_HOLDuntil 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.
Required field on all POST requests
A unique UUID to identify the booking. Setting this value acts like an idempotency key preventing you from double booking.
559aed3d-6d5b-4fe0-bfca-99f5e7218a56The product ID for this booking.
6b903d44-dc24-4ca4-ae71-6bde6c4f4854The option ID for this booking.
DEFAULTThe availability ID for the selected timeslot.
2021-10-27T00:00:00-04:00How many minutes to reserve the availability, otherwise defaults to the supplier default amount.
30Optional notes for the booking.
Optional notesOK
A unique ID / UUID generated by the supplier system to identify the booking.
bbbb6227-54fc-4c32-9ed7-dc3eb99966eaA UUID you can set when generating the booking to use as an idempotency key.
559aed3d-6d5b-4fe0-bfca-99f5e7218a56If TRUE, booking was created on test mode
The reference set by the Reseller. A mandatory field for resellers to be set in the booking confirmation request.
The Supplier's / booking platform reference.
The status of the booking, possible values are:
ON_HOLD The booking is pending confirmation, this is the default value when you first create the booking.
EXPIRED If the booking is not confirmed before the expiration hold expires, it goes into an expired state.
CONFIRMED Once the confirmation call is made the booking is ready to be used.
CANCELLED If the booking is cancelled.
PENDING If the booking is pending outside availability confirmation.
REDEEMED If the booking is already redeemed.
CONFIRMEDPossible values: An ISO8601 date time in UTC when the booking was created.
2021-10-27T23:28:43ZAn ISO8601 date time in UTC when the booking was updated.
2021-10-27T23:28:43ZAn ISO8601 date times in UTC for when this booking is due to expire if the status is ON_HOLD.
2021-10-27T23:58:43ZAn ISO8601 date time in UTC at when the booking was redeemed.
An ISO8601 date time in UTC when the booking was confirmed.
2021-10-27T23:28:43ZThe product ID that identifies the product in the booking system to make this reservation.
6b903d44-dc24-4ca4-ae71-6bde6c4f4854The product ID that identifies the product option in the booking system to make this reservation.
DEFAULTA boolean field indicating whether this booking can be cancelled.
Whether the booking was made as freesale (without checking availability first).
The availability id that was used in the request.
Optional notes for the bookingExample response
Booking Confirmation
This endpoint confirms the booking so it's ready to be used.
The UUID of the booking
Required field on all POST requests
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-dc946531a33bOK
A unique ID / UUID generated by the supplier system to identify the booking.
bbbb6227-54fc-4c32-9ed7-dc3eb99966eaA UUID you can set when generating the booking to use as an idempotency key.
559aed3d-6d5b-4fe0-bfca-99f5e7218a56If TRUE, booking was created on test mode
The reference set by the Reseller. A mandatory field for resellers to be set in the booking confirmation request.
The Supplier's / booking platform reference.
The status of the booking, possible values are:
ON_HOLD The booking is pending confirmation, this is the default value when you first create the booking.
EXPIRED If the booking is not confirmed before the expiration hold expires, it goes into an expired state.
CONFIRMED Once the confirmation call is made the booking is ready to be used.
CANCELLED If the booking is cancelled.
PENDING If the booking is pending outside availability confirmation.
REDEEMED If the booking is already redeemed.
CONFIRMEDPossible values: An ISO8601 date time in UTC when the booking was created.
2021-10-27T23:28:43ZAn ISO8601 date time in UTC when the booking was updated.
2021-10-27T23:28:43ZAn ISO8601 date times in UTC for when this booking is due to expire if the status is ON_HOLD.
2021-10-27T23:58:43ZAn ISO8601 date time in UTC at when the booking was redeemed.
An ISO8601 date time in UTC when the booking was confirmed.
2021-10-27T23:28:43ZThe product ID that identifies the product in the booking system to make this reservation.
6b903d44-dc24-4ca4-ae71-6bde6c4f4854The product ID that identifies the product option in the booking system to make this reservation.
DEFAULTA boolean field indicating whether this booking can be cancelled.
Whether the booking was made as freesale (without checking availability first).
The availability id that was used in the request.
Optional notes for the bookingExample response
Booking Cancellation
For cancelling bookings. You can only cancel a booking if booking.cancellable is TRUE, and is within the booking cancellation cut-off window.
Required field on all DELETE requests
A text value describing why the cancellation happened.
Customer RequestedOK
A unique ID / UUID generated by the supplier system to identify the booking.
bbbb6227-54fc-4c32-9ed7-dc3eb99966eaA UUID you can set when generating the booking to use as an idempotency key.
559aed3d-6d5b-4fe0-bfca-99f5e7218a56If TRUE, booking was created on test mode
The reference set by the Reseller. A mandatory field for resellers to be set in the booking confirmation request.
The Supplier's / booking platform reference.
The status of the booking, possible values are:
ON_HOLD The booking is pending confirmation, this is the default value when you first create the booking.
EXPIRED If the booking is not confirmed before the expiration hold expires, it goes into an expired state.
CONFIRMED Once the confirmation call is made the booking is ready to be used.
CANCELLED If the booking is cancelled.
PENDING If the booking is pending outside availability confirmation.
REDEEMED If the booking is already redeemed.
CONFIRMEDPossible values: An ISO8601 date time in UTC when the booking was created.
2021-10-27T23:28:43ZAn ISO8601 date time in UTC when the booking was updated.
2021-10-27T23:28:43ZAn ISO8601 date times in UTC for when this booking is due to expire if the status is ON_HOLD.
2021-10-27T23:58:43ZAn ISO8601 date time in UTC at when the booking was redeemed.
An ISO8601 date time in UTC when the booking was confirmed.
2021-10-27T23:28:43ZThe product ID that identifies the product in the booking system to make this reservation.
6b903d44-dc24-4ca4-ae71-6bde6c4f4854The product ID that identifies the product option in the booking system to make this reservation.
DEFAULTA boolean field indicating whether this booking can be cancelled.
Whether the booking was made as freesale (without checking availability first).
The availability id that was used in the request.
Optional notes for the bookingExample response
Get Bookings
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:
resellerReferencesupplierReferencelocalDatelocalDateStartandlocalDateEnd
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
OK
A unique ID / UUID generated by the supplier system to identify the booking.
bbbb6227-54fc-4c32-9ed7-dc3eb99966eaA UUID you can set when generating the booking to use as an idempotency key.
559aed3d-6d5b-4fe0-bfca-99f5e7218a56If TRUE, booking was created on test mode
The reference set by the Reseller. A mandatory field for resellers to be set in the booking confirmation request.
The Supplier's / booking platform reference.
The status of the booking, possible values are:
ON_HOLD The booking is pending confirmation, this is the default value when you first create the booking.
EXPIRED If the booking is not confirmed before the expiration hold expires, it goes into an expired state.
CONFIRMED Once the confirmation call is made the booking is ready to be used.
CANCELLED If the booking is cancelled.
PENDING If the booking is pending outside availability confirmation.
REDEEMED If the booking is already redeemed.
CONFIRMEDPossible values: An ISO8601 date time in UTC when the booking was created.
2021-10-27T23:28:43ZAn ISO8601 date time in UTC when the booking was updated.
2021-10-27T23:28:43ZAn ISO8601 date times in UTC for when this booking is due to expire if the status is ON_HOLD.
2021-10-27T23:58:43ZAn ISO8601 date time in UTC at when the booking was redeemed.
An ISO8601 date time in UTC when the booking was confirmed.
2021-10-27T23:28:43ZThe product ID that identifies the product in the booking system to make this reservation.
6b903d44-dc24-4ca4-ae71-6bde6c4f4854The product ID that identifies the product option in the booking system to make this reservation.
DEFAULTA boolean field indicating whether this booking can be cancelled.
Whether the booking was made as freesale (without checking availability first).
The availability id that was used in the request.
Optional notes for the bookingExample response
Get Booking
Fetch the status of an existing booking.
The UUID of the booking
OK
A unique ID / UUID generated by the supplier system to identify the booking.
bbbb6227-54fc-4c32-9ed7-dc3eb99966eaA UUID you can set when generating the booking to use as an idempotency key.
559aed3d-6d5b-4fe0-bfca-99f5e7218a56If TRUE, booking was created on test mode
The reference set by the Reseller. A mandatory field for resellers to be set in the booking confirmation request.
The Supplier's / booking platform reference.
The status of the booking, possible values are:
ON_HOLD The booking is pending confirmation, this is the default value when you first create the booking.
EXPIRED If the booking is not confirmed before the expiration hold expires, it goes into an expired state.
CONFIRMED Once the confirmation call is made the booking is ready to be used.
CANCELLED If the booking is cancelled.
PENDING If the booking is pending outside availability confirmation.
REDEEMED If the booking is already redeemed.
CONFIRMEDPossible values: An ISO8601 date time in UTC when the booking was created.
2021-10-27T23:28:43ZAn ISO8601 date time in UTC when the booking was updated.
2021-10-27T23:28:43ZAn ISO8601 date times in UTC for when this booking is due to expire if the status is ON_HOLD.
2021-10-27T23:58:43ZAn ISO8601 date time in UTC at when the booking was redeemed.
An ISO8601 date time in UTC when the booking was confirmed.
2021-10-27T23:28:43ZThe product ID that identifies the product in the booking system to make this reservation.
6b903d44-dc24-4ca4-ae71-6bde6c4f4854The product ID that identifies the product option in the booking system to make this reservation.
DEFAULTA boolean field indicating whether this booking can be cancelled.
Whether the booking was made as freesale (without checking availability first).
The availability id that was used in the request.
Optional notes for the bookingExample response
Last updated