Release Package Booking
See Booking flow for the end-to-end lifecycle.
Endpoint: /bookings/create/package/{:sessionId}
METHOD: DELETE
Ends a package session. If the session holds a booking, its cabins are released straight away and become available to other searches; there is no need to wait for the session to expire.
Call this when the customer decides not to book. After a successful release, every call on the sessionId returns 404, so start a new search to book again.
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| sessionId | string (UUID) | Yes | Session returned by /search/packages. Must be a package session. |
Query Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| user_key | string | Yes | Unique key associated with the calling agency. |
Example
Request
curl --location --request DELETE '{:apiBase}/bookings/create/package/{:sessionId}?user_key=abcdef' \
--header 'Authorization: Bearer XXXXXXXX'
Response
200 OK with an empty body.
Errors
See Error model for response-body shapes across status codes.
| Status | Cause |
|---|---|
| 400 | user_key query parameter is missing. |
| 404 | The session does not exist, has expired, or has already been released or confirmed. |
| 409 | The session is not a package session. |
| 500 | The booking could not be released. The session and its held booking are left unchanged, so the release can be retried. |