Booking Events
Gets Booking Events for a Booking leg.
Requests to this endpoint that fail may be retried after a few minutes. See more in the Responses section.
get/v1/bookings/{bookingReference}/events
Path parameters
bookingReferencestring required
The Suntransfers Booking reference identifier.
Query parameters
leginteger required
The leg number of the Transfer within the Booking. Leg numbers start at 1.
sort'Asc' | 'Desc' required
The direction to sort results, either ascending or descending.
The sort direction of Booking Events (by occurredAt).
startingAtstring date-time
An ISO 8601 date-time string in local time.
The starting local date and time to filter Booking Events by.
endingAtstring date-time
An ISO 8601 date-time string in local time.
The ending local date and time to filter Booking Events by.
Response
200 OK: Booking found. This Booking's events - if any - are listed in the response.