---
title: "Get a trip"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.nicer.travel/llms.txt
> Use this file to discover all available pages before exploring further.

# Get a trip

Path: Nicer API › Trips

`GET /travelers-trip/{travelersTripId}`

URL: `https://api.nicer.travel/travelers-trip/{travelersTripId}`

Returns a single trip with its destinations, dates, travelers and the ids of the itinerary and conversation attached to it. `status` is derived on read from the trip dates and whether anything has been booked yet, so it is always current. Readable by the people on the trip, its advisor of record, the admins of the agency that owns it and Nicer staff; anyone else is refused (ERROR_UNAUTHORIZED), whatever the id.

## Authentication

- `bearerAuth`, http bearer, header `Authorization`, format `JWT`

## Path parameters

- `travelersTripId` (`travelersTrip.get.path.travelersTripId`; string, required)

## Code samples

### JavaScript SDK

```javascript
import { createClient } from "@nicertravel/sdk";

const nicer = createClient({
  baseUrl: "https://api.nicer.travel",
  token: process.env.NICER_TOKEN,
});

await nicer.travelersTrip.get({
  "travelersTripId": "string"
});
```

### Nicer CLI

```bash
nicer travelers-trip get --travelers-trip-id 'string'
```

### cURL

```bash
curl --request GET \
  --url 'https://api.nicer.travel/travelers-trip/<travelersTripId>' \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://api.nicer.travel/travelers-trip/<travelersTripId>';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.nicer.travel/travelers-trip/<travelersTripId>"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

OK

#### Example

```json
{
  "assignedAdvisorUserId": "string",
  "associatedChatId": "string",
  "associatedTripItineraryId": "string",
  "associatedUserIds": [
    "string"
  ],
  "availableDate": "string",
  "budgetCurrency": "string",
  "companyName": "string",
  "conciergeMessageSentAt": "string",
  "createdBy": "string",
  "createdReason": "CREATED_BY_TRAVELER",
  "deleted": true,
  "deletedAt": "string",
  "deletedBy": "string",
  "destinations": [
    {
      "address": "string",
      "amenities": [
        "string"
      ],
      "city": "string",
      "country": "string",
      "countryCode": "string",
      "description": "string",
      "distanceFromSearch": {
        "unit": "km",
        "value": 0
      },
      "features": [
        "string"
      ],
      "fullAddress": "string",
      "gate": "string",
      "iataCode": "string",
      "internovaId": "string",
      "latitude": 0,
      "longitude": 0,
      "name": "string",
      "photos": [
        {
          "key": "string",
          "name": "string",
          "url": "string"
        }
      ],
      "placeId": "string",
      "region": "string",
      "source": "string",
      "state": "string",
      "terminal": "string",
      "timeZone": "string",
      "zipCode": "string",
      "endDateTime": "string",
      "headerImageUrl": "string",
      "startDateTime": "string"
    }
  ],
  "hasActivity": true,
  "hasFlexibleDates": true,
  "isAllPricesHidden": false,
  "isItineraryVisible": true,
  "isSummaryHidden": false,
  "lastMessageTimestamp": "string",
  "lastModifiedBy": "string",
  "primaryTravelerUserId": "string",
  "specialRequests": "string",
  "suggestionsEnabled": true,
  "travelers": {
    "adults": 0,
    "children": 0
  },
  "tripEndDate": "string",
  "tripStartDate": "string",
  "tripTitle": "string",
  "amount": 0,
  "budget": "goodValue",
  "purpose": "holidays",
  "who": "solo",
  "travelersTripId": "string",
  "createdAt": "string",
  "updatedAt": "string",
  "type": "TravelersTrip",
  "isArchived": true,
  "status": "PROPOSAL"
}
```

- `associatedUserIds` (`travelersTrip.get.response.200.associatedUserIds`; array of string, required)
- `companyName` (`travelersTrip.get.response.200.companyName`; string, required)
- `createdBy` (`travelersTrip.get.response.200.createdBy`; string, required)
- `destinations` (`travelersTrip.get.response.200.destinations`; array of object, required)
  - `endDateTime` (`travelersTrip.get.response.200.destinations.endDateTime`; string, required)
    - pattern: `^\d{4}-\d{2}-\d{2}$`
  - `startDateTime` (`travelersTrip.get.response.200.destinations.startDateTime`; string, required)
    - pattern: `^\d{4}-\d{2}-\d{2}$`
  - `address` (`travelersTrip.get.response.200.destinations.address`; any of, optional)
    - any of the following: `string`, `null`
  - `amenities` (`travelersTrip.get.response.200.destinations.amenities`; array of string, optional)
  - `city` (`travelersTrip.get.response.200.destinations.city`; any of, optional)
    - any of the following: `string`, `null`
  - `country` (`travelersTrip.get.response.200.destinations.country`; string, optional)
  - `countryCode` (`travelersTrip.get.response.200.destinations.countryCode`; string, optional)
  - `description` (`travelersTrip.get.response.200.destinations.description`; string, optional)
  - `distanceFromSearch` (`travelersTrip.get.response.200.destinations.distanceFromSearch`; object, optional)
    - `unit` (`travelersTrip.get.response.200.destinations.distanceFromSearch.unit`; string, required)
      - one of `"km"`, `"mi"`
    - `value` (`travelersTrip.get.response.200.destinations.distanceFromSearch.value`; number, required)
  - `features` (`travelersTrip.get.response.200.destinations.features`; array of string, optional)
  - `fullAddress` (`travelersTrip.get.response.200.destinations.fullAddress`; string, optional)
  - `gate` (`travelersTrip.get.response.200.destinations.gate`; any of, optional)
    - any of the following: `string`, `null`
  - `iataCode` (`travelersTrip.get.response.200.destinations.iataCode`; any of, optional)
    - any of the following: `string`, `null`
  - `internovaId` (`travelersTrip.get.response.200.destinations.internovaId`; string, optional)
  - `latitude` (`travelersTrip.get.response.200.destinations.latitude`; number, optional)
  - `longitude` (`travelersTrip.get.response.200.destinations.longitude`; number, optional)
  - `name` (`travelersTrip.get.response.200.destinations.name`; string, optional)
  - `photos` (`travelersTrip.get.response.200.destinations.photos`; array of object, optional)
    - `name` (`travelersTrip.get.response.200.destinations.photos.name`; string, required)
    - `key` (`travelersTrip.get.response.200.destinations.photos.key`; string, optional)
    - `url` (`travelersTrip.get.response.200.destinations.photos.url`; string, optional)
  - `placeId` (`travelersTrip.get.response.200.destinations.placeId`; string, optional)
  - `region` (`travelersTrip.get.response.200.destinations.region`; string, optional)
  - `source` (`travelersTrip.get.response.200.destinations.source`; string, optional)
  - `state` (`travelersTrip.get.response.200.destinations.state`; any of, optional)
    - any of the following: `string`, `null`
  - `terminal` (`travelersTrip.get.response.200.destinations.terminal`; any of, optional)
    - any of the following: `string`, `null`
  - `timeZone` (`travelersTrip.get.response.200.destinations.timeZone`; string, optional)
  - `zipCode` (`travelersTrip.get.response.200.destinations.zipCode`; any of, optional)
    - any of the following: `string`, `null`
  - `headerImageUrl` (`travelersTrip.get.response.200.destinations.headerImageUrl`; string, optional)
- `hasFlexibleDates` (`travelersTrip.get.response.200.hasFlexibleDates`; boolean, required)
- `isAllPricesHidden` (`travelersTrip.get.response.200.isAllPricesHidden`; boolean, required)
  - default: `false`
- `isItineraryVisible` (`travelersTrip.get.response.200.isItineraryVisible`; boolean, required)
  - default: `true`
- `isSummaryHidden` (`travelersTrip.get.response.200.isSummaryHidden`; boolean, required)
  - default: `false`
- `lastModifiedBy` (`travelersTrip.get.response.200.lastModifiedBy`; string, required)
- `primaryTravelerUserId` (`travelersTrip.get.response.200.primaryTravelerUserId`; string, required)
- `tripEndDate` (`travelersTrip.get.response.200.tripEndDate`; string, required)
- `tripStartDate` (`travelersTrip.get.response.200.tripStartDate`; string, required)
- `tripTitle` (`travelersTrip.get.response.200.tripTitle`; string, required)
- `travelersTripId` (`travelersTrip.get.response.200.travelersTripId`; string, required)
- `createdAt` (`travelersTrip.get.response.200.createdAt`; string, required)
- `updatedAt` (`travelersTrip.get.response.200.updatedAt`; string, required)
- `type` (`travelersTrip.get.response.200.type`; string, required)
- `isArchived` (`travelersTrip.get.response.200.isArchived`; boolean, required)
- `status` (`travelersTrip.get.response.200.status`; string, required)
  - one of `"PROPOSAL"`, `"IN_PROGRESS"`, `"TRAVELING"`
- `assignedAdvisorUserId` (`travelersTrip.get.response.200.assignedAdvisorUserId`; any of, optional)
  - any of the following: `string`, `null`
- `associatedChatId` (`travelersTrip.get.response.200.associatedChatId`; any of, optional)
  - any of the following: `string`, `null`
- `associatedTripItineraryId` (`travelersTrip.get.response.200.associatedTripItineraryId`; any of, optional)
  - any of the following: `string`, `null`
- `availableDate` (`travelersTrip.get.response.200.availableDate`; any of, optional)
  - any of the following:
    - `string`
    - `object`
      - `from` (`travelersTrip.get.response.200.availableDate.2.from`; string, required)
      - `to` (`travelersTrip.get.response.200.availableDate.2.to`; string, required)
- `budgetCurrency` (`travelersTrip.get.response.200.budgetCurrency`; any of, optional)
  - any of the following: `string`, `null`
- `conciergeMessageSentAt` (`travelersTrip.get.response.200.conciergeMessageSentAt`; any of, optional)
  - any of the following: `string`, `null`
- `createdReason` (`travelersTrip.get.response.200.createdReason`; string, optional)
  - one of `"CREATED_BY_TRAVELER"`, `"CREATED_BY_ADVISOR"`, `"CREATED_BY_MATCHING_ADVISOR"`, `"CREATED_BY_BOOKING"`
- `deleted` (`travelersTrip.get.response.200.deleted`; boolean, optional)
- `deletedAt` (`travelersTrip.get.response.200.deletedAt`; any of, optional)
  - any of the following: `string`, `null`
- `deletedBy` (`travelersTrip.get.response.200.deletedBy`; string, optional)
- `hasActivity` (`travelersTrip.get.response.200.hasActivity`; boolean, optional)
- `lastMessageTimestamp` (`travelersTrip.get.response.200.lastMessageTimestamp`; any of, optional)
  - any of the following: `string`, `null`
- `specialRequests` (`travelersTrip.get.response.200.specialRequests`; any of, optional)
  - any of the following: `string`, `null`
- `suggestionsEnabled` (`travelersTrip.get.response.200.suggestionsEnabled`; boolean, optional)
- `travelers` (`travelersTrip.get.response.200.travelers`; object, optional)
  - `adults` (`travelersTrip.get.response.200.travelers.adults`; number, optional)
  - `children` (`travelersTrip.get.response.200.travelers.children`; number, optional)
- `amount` (`travelersTrip.get.response.200.amount`; number, optional)
- `budget` (`travelersTrip.get.response.200.budget`; any of, optional)
  - any of the following: `string`, `string`
- `purpose` (`travelersTrip.get.response.200.purpose`; any of, optional)
  - any of the following: `string`, `string`, `string`, `string`
- `who` (`travelersTrip.get.response.200.who`; any of, optional)
  - any of the following: `string`, `string`, `string`, `string`

### 400

Request failed. `errorCode` is stable; `errorMessage` is for humans.

#### Example

```json
{
  "errorCode": "string",
  "errorMessage": "string"
}
```

- `errorCode` (`travelersTrip.get.response.400.errorCode`; string, required)
- `errorMessage` (`travelersTrip.get.response.400.errorMessage`; string, required)

### 401

Request failed. `errorCode` is stable; `errorMessage` is for humans.

#### Example

```json
{
  "errorCode": "string",
  "errorMessage": "string"
}
```

- `errorCode` (`travelersTrip.get.response.401.errorCode`; string, required)
- `errorMessage` (`travelersTrip.get.response.401.errorMessage`; string, required)

### 403

Request failed. `errorCode` is stable; `errorMessage` is for humans.

#### Example

```json
{
  "errorCode": "string",
  "errorMessage": "string"
}
```

- `errorCode` (`travelersTrip.get.response.403.errorCode`; string, required)
- `errorMessage` (`travelersTrip.get.response.403.errorMessage`; string, required)


Source: https://docs.nicer.travel/api/Trips/travelersTrip.get/index.md
