Trips beta
Beta
The /v3/trips routes are new. Their fields may still change until trips move to their own tables (KD-4043). Until then:
- an experience or stay item's
idchanges each time the itinerary is written: read the items again after a write; priceis alwaysnull: the Trip Designer prices the trip;- a stay names a hotel and a number of nights, no room: rooms are picked in the Trip Designer.
A trip is a party, a start date and an itinerary of items. An assistant (or your own tool) drafts it; a person then opens it in the Trip Designer to pick the rooms, price it and book it, as with any trip.
These routes take people only: sign in through OAuth, as the MCP server does. An API key is refused with a 401. Your organization needs the Trip Designer.
Create a trip
POST /api/v3/trips creates a draft with no itinerary.
{
"name": "Vietnam, 10 days",
"startOn": "2027-03-12",
"countryIds": ["239"],
"dmcId": "42",
"rooms": [{ "adults": 2, "childrenBirthdates": [] }]
}startOnis today or later.roomsis the party, room by room. It is set on create only.- A tour operator names a DMC it is connected to (
dmcId). A DMC runs its own trips and leavesdmcIdout. - Without
folderId, the first itinerary write files the trip in a new folder named after it.
The answer is the trip, with a url that opens it in your Trip Designer: share it with the person who will finish the trip.
PATCH /api/v3/trips/{id} changes the fields you send; null clears one. Only the trip's organization changes its DMC or its folder.
Write the itinerary
PUT /api/v3/trips/{id}/items writes the whole itinerary at once. An item left out is removed.
{
"items": [
{ "day": 1, "type": "stay", "nightsCount": 3, "hotelId": "2401" },
{ "day": 4, "type": "experience", "experienceId": "656" },
{ "day": 5, "type": "extra", "experienceId": "902" }
]
}| Type | What it is | Takes |
|---|---|---|
experience | An activity or a program, over its days | experienceId; daysCount defaults to the experience's length |
stay | A hotel for a number of nights, from day | hotelId and nightsCount, or selfArranged: true and no hotel |
extra | A service of the experience running that day | experienceId (the extra); parentItemId for an extra of another extra; party when not everyone takes part |
- One experience per day, one stay per night.
- An extra must be one the experience offers on that day (
GET /api/v3/experiences/{id}/extras). - A tour operator adds the hotels and experiences its connections give it; whatever is already on the trip stays.
- A new hotel or experience must be on sale (
state: available); one in progress or stand by gets a422 PRODUCT_NOT_AVAILABLE. - Send an item back with the
idyou read it with to keep what it carries beyond these fields, such as the room picked for a stay.
POST /api/v3/trips/{id}/items adds one item and leaves the rest alone. GET /api/v3/trips/{id}/items lists them in day order.
Status
status | Means |
|---|---|
draft | Being designed |
proposed | A DMC proposed it to a tour operator |
booked | At least one of its products is booked |
GET /api/v3/trips lists the trips your organization owns or runs as their DMC, filtered by statuses, folders, dmcs, countries, a startAt/endAt window and a free-text search.