Pickups
Adds pickup and dropoff functionality to the API
To use this capability, add octo/pickups to your Octo-Capabilities header.
This capability adds pickup/dropoff configuration to options, timed pickup/dropoff choices to availability responses, and pickup/dropoff selection fields on booking write/booking response objects.
Routes
Product option fields are returned on:
GET /productsGET /products/{productId}
Availability fields are returned on:
POST /availabilityPOST /availability/batch
Booking write fields are accepted on:
POST /bookingsPATCH /bookings/{uuid}
Behaviour
If both
pickupPointIdandpickupHotelare sent,pickupPointIdtakes precedence.If both
dropoffPointIdanddropoffHotelare sent,dropoffPointIdtakes precedence.When
pickupHotelis provided and no pickup point matches by name, the API geocodes/creates a hotel record and links it to the booking.When
dropoffHotelis provided and no dropoff point matches by name, the API geocodes/creates a hotel record and links it to the booking.pickupAddressanddropoffAddresscan be sent to improve hotel geocoding accuracy.Send
nullto clear existing values for pickup/dropoff booking fields.For custom dropoff products, availability-level
dropoffPointsrequire an end time; for stop-based dropoff products, dropoffs are resolved by stop/date.
Schema Additions (JSON)
These are additive fragments showing only fields introduced by this capability.
Option
Availability
AvailabilityBatchRow
PackageAvailability
AvailabilityResourcesRequest
BookingWriteRequest
Booking
Last updated