Skip to main content

Create one-stop booking

POST 

/bookings/one-stop

Returns a booking for the given travel plan. This endpoint executes POST /planning/offers and POST /booking in one blow, the information provided should lead to only one possible offer, that is booked directly. The returned booking is still in PENDING state, you have to commit it. Unless 'AUTO_COMMIT' process identifier is applied. In that case the booking is in state 'CONFIRMED'.

Request

Responses

A single booking, or when it's not possible, return a 406.

Response Headers
    Content-Language

    A list of the languages/localizations the user would like to see the results in. For user privacy and ease of use on the TO side, this list should be kept as short as possible, ideally just one language tag from the list in operator/information

    Example: nl, de;q=0.7
    Expires

    The result is valid until this timestamp. The pending booking is expired after this timestamp.