githubEdit

Rentals

Adds rental duration selection and rental metadata to OCTO endpoints.

To use this capability, add octo/rentals to your Octo-Capabilities header.

Rentals adds duration selection for rental products and exposes rental metadata on product, option, and booking responses.

circle-info

Operations below use the /octo prefix.

Rental Product Data

This capability extends product routes documented in Products:

  • GET /products

  • GET /products/{productId}

Rental Duration Object

Used by option.rentalDurations[] and booking.rentalDuration.

Base product schema: Products.

circle-info

Always use ids returned by option.rentalDurations[]. Unsupported duration units return INVALID_RENTAL_DURATION_ID.

Rental Availability

This capability extends availability routes documented in Availability:

  • POST /availability

  • POST /availability/calendar

  • POST /availability/batch

  • POST /availability/calendar/batch

Request Fields Added by Rentals

Base availability schema: Availability.

circle-info

Rentals does not add new availability response fields. The selected duration is applied to availability and pricing calculation.

Rental Booking

The same rentalDurationId request field is supported on all booking write routes that use create_booking:

  • POST /bookings

  • PATCH /bookings/{uuid}

  • POST /bookings/{uuid}/confirm

Request Field

Base booking schema: Bookings.

Added Booking Response Fields

These are additive response fields on the base booking schema from Bookings.

circle-info

These booking fields are returned on booking write routes above and booking read/cancel/extend routes that serialize bookings (GET /octo/bookings, GET /octo/bookings/:uuid, POST /octo/bookings/:uuid/cancel, POST /octo/bookings/:uuid/extend).

Schema Additions (JSON)

These are additive fragments showing only fields introduced by this capability.

AvailabilityBatchRequest

AvailabilityCalendarBatchRequest

AvailabilityCalendarRequest

AvailabilityRequest

Booking

BookingWriteRequest

Option

Product

Last updated