Skip to navigation

Extend an existing destination itinerary with additional days

Adds newTotalDays-minus-existingDays additional days (server-computed, never a model-chosen count) to a previously generated itinerary, starting at existingDays and excluding any pinned place. A non-positive delta returns an empty day list with no model call, cost-free. seatId/memberSlot are un-trusted locators only; airline_id/persona/affinity/age-tier are always server-resolved.

Authentication

AuthorizationBearer

OAuth authentication of the form <token>.

Headers

X-Session-IdstringRequired

The passenger-session locator (a within-tenant locator, never a trust assertion). A missing or key-unsafe value is rejected 400 before this handler runs.

Request

This endpoint expects an object.
seatIdstringRequired
destinationobjectRequired

Identifies a place by city, country, or airport, with optional coordinates. Supply lat/lon only if you already have them — when they are omitted the server resolves coordinates from its airport and city reference data, so a city name or airport code alone is enough.

existingDaysinteger or stringRequired

The number of days already generated — new days are appended starting at this index.

newTotalDaysinteger or stringRequired

The desired total day count after extension. Must exceed existingDays for a new day to be generated.

memberSlotstring or nullOptional
pinnedPlaceIdslist of stringsOptional

Place ids to exclude from new recommendations — un-trusted locators, never re-suggested.

weatherlist of objects or nullOptional

Optional client-held forecast for the new days; the server re-fetches when absent.

Response

OK
correlationIdstring
newDayslist of objects
schemaVersionstringOptional

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
422
Unprocessable Entity Error
429
Too Many Requests Error
500
Internal Server Error