Skip to content
Navigation

Add a live offer to the itinerary

POST
https://api.nicer.travel/trip-itinerary/{tripItineraryId}/offers

Adds a live offer (hotel room, flight or car rental) to the itinerary as a bookable segment: it re-validates the offer with the provider, saves it as a booking selection and writes the segment, in one call. Adding the same offer to the same trip again returns the segment already there. status is OK with the segment id, or UNAVAILABLE when the offer is gone (search again). A Sabre offer with no DK to book with (the advisor has none and the agency has no default DK) is refused with 422 BOOKING_SABRE_DK_REQUIRED.

Authorization

  • bearerAuth
    HTTP Bearer (JWT)
    required

    Authorization: Bearer <token>

Path parameters

  • tripItineraryId
    string
    required

Header parameters

  • x-nicer-company
    string
    required

    Company context. Authentication and tenant membership are validated by the API.

Request body JSON required

  • offerReference
    string
    required

    The live offer: a room's offerReference from getHotelRooms, or a flight's or car rental's offerReference from its search.

    minLength: 1
  • groupId
    optional
    string

    Add it among the alternatives of this itinerary slot.

    minLength: 1

Returns

200

OK

JSON
  • reason
    required

    Any of the following:

    • string
    • null
  • segmentId
    required

    Any of the following:

    • string
    • null
  • status
    OK
    or
    UNAVAILABLE
    required
  • title
    required

    Any of the following:

    • string
    • null

400

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

401

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

403

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

Type to search…

↑↓ navigate↵ selectEsc close