githubEdit

Pickups

Adds pickup and dropoff functionality to the API

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

Hotel pickup is offered by some products where guests can be collected from a pickup point (or hotel) before departure and optionally dropped off afterwards.

circle-info

Operations below use the /octo prefix.

Product Pickups

This capability extends product routes documented in Products:

  • GET /products

  • GET /products/{productId}

This capability adds pickup/dropoff fields to each options[] object in the product response.

Query Parameters

This capability does not add pickup/dropoff-specific query parameters to product routes.

Added Option Fields

Base product schema: Products.

circle-info

pickupPoints and dropoffPoints on product options are configuration lists. Availability-level filtering/times are returned by /availability.

circle-info

The same option-level fields are also returned on booking.option in booking responses.

Pickup Check

This capability extends availability routes documented in Availability:

  • POST /availability

  • POST /availability/batch

Returns pickup/dropoff details per departure.

This capability does not add top-level availability fields.

Added Availability Fields

Base availability schema: Availability.

circle-info

In availability responses, dropoffPoints is empty when dropoff is unavailable or when the departure has no end time.

circle-info

The same availability-level fields are also returned on booking.availability in booking responses for dated bookings.

Booking Reservation

The same pickup/dropoff request fields are supported by these booking write routes:

  • POST /bookings

  • PATCH /bookings/{uuid}

  • POST /bookings/{uuid}/confirm

circle-info

If both pickupPointId and pickupHotel are sent, pickupPointId takes precedence.

circle-info

When pickupHotel is used, the API first tries to match an existing pickup by name. If none is found, it geocodes/creates a hotel record and links it to the booking.

circle-info

Send null for pickupPointId, pickupHotel, pickupHotelRoom, pickupNotes, dropoffPointId, or dropoffNotes to clear existing values.

Base booking schema: Bookings.

Added Booking Response Fields

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

circle-info

The same booking response fields are present on booking read/cancel routes that return booking objects, including GET /octo/bookings, GET /octo/bookings/:uuid, POST /octo/bookings/:uuid/cancel, and POST /octo/bookings/:uuid/extend.

Pickup Point Object

Used by pickupPoints[] and pickupPoint.

Dropoff Point Object

Used by dropoffPoints[] and dropoffPoint.

circle-info

localDateTime and localDateTimeTo are not included on product option dropoffPoints[]; they are added in availability and booking responses.

Schema Additions (JSON)

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

Availability

AvailabilityBatchRow

AvailabilityResourcesRequest

Booking

BookingWriteRequest

Option

PackageAvailability

Last updated